/Designs/Measuring_instruments/RMDS01A/SW/Tools/test.sh
1,5 → 1,5
#!/usr/bin/env bash
 
ssh -o "BatchMode yes" meteor@neptun.avc-cvut.cz "exit"
ssh -o StrictHostKeyChecking=no -o BatchMode=yes meteor@neptun.avc-cvut.cz "exit"
 
[[ "$?" -eq 0 ]] && exit 0 || exit 1
/Designs/Measuring_instruments/RMDS01A/SW/Tools/tidyup.sh
85,7 → 85,8
# create directory with observatory name, year, month and day if hasn't existed before
[[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR"
mv "$i" "$DAYDIR"
# check if directory really exists (if fs is full it might not be created)
[[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR"
done
echo -n "$OBSERVATORY$SLASH$YEAR$SLASH$MONTH$SLASH$DAY" > LAST