Mercurial > hg > beaglert
comparison scripts/update_board @ 441:b596c72f0382 prerelease
update_board sends the time zone when setting the date, format
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 19 Jun 2016 00:30:48 +0100 |
parents | e49ae69acbe8 |
children | 2b09be3fb0f2 |
comparison
equal
deleted
inserted
replaced
440:7a074e238db3 | 441:b596c72f0382 |
---|---|
80 # Find location of this script so we can locate the rest of the files | 80 # Find location of this script so we can locate the rest of the files |
81 SCRIPTDIR=$(dirname "$0") | 81 SCRIPTDIR=$(dirname "$0") |
82 [ -z "$IDE_FOLDER" ] && IDE_FOLDER=$SCRIPTDIR/../../bela-ide/ | 82 [ -z "$IDE_FOLDER" ] && IDE_FOLDER=$SCRIPTDIR/../../bela-ide/ |
83 | 83 |
84 | 84 |
85 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T'`\" > /dev/null; stat $BBB_BELA_HOME &>/dev/null" && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 | 85 ssh $BBB_ADDRESS "date -s \"`date '+%Y%m%d %T %Z'`\" > /dev/null; stat $BBB_BELA_HOME &>/dev/null" && DESTINATION_EMPTY=0 || DESTINATION_EMPTY=1 |
86 | 86 |
87 if [ $DESTINATION_EMPTY -eq 0 ]; | 87 if [ $DESTINATION_EMPTY -eq 0 ]; |
88 then | 88 then |
89 echo "Updating the Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME" | 89 echo "Updating the Bela core code in $BBB_ADDRESS:$BBB_BELA_HOME" |
90 if [ $RESET_BOARD -eq 1 ]; | 90 if [ $RESET_BOARD -eq 1 ]; |