Skip to content
Snippets Groups Projects
Commit a829dbd3 authored by efer's avatar efer
Browse files

exit if problem finding rclone/age

parent 8f59ef9a
No related branches found
No related tags found
No related merge requests found
...@@ -377,7 +377,7 @@ elif [ -f $RCLONE_DIR/rclone.conf ]; then ...@@ -377,7 +377,7 @@ elif [ -f $RCLONE_DIR/rclone.conf ]; then
else else
emptypass=$(grep -F "[compbackup]" -A4 $RCLONE_DIR/rclone.conf|awk -F "=" 'NR==5,//{print $2}') emptypass=$(grep -F "[compbackup]" -A4 $RCLONE_DIR/rclone.conf|awk -F "=" 'NR==5,//{print $2}')
if [ -z $emptypass ]; then if [ -z $emptypass ]; then
echo -e "[rclone config]" $R_"Config is broken and needs to be replaced"$_N echo -e "[rclone config]" $R_"Config is broken and needs to be replaced\n"$_N
exit 1 exit 1
fi fi
fi fi
...@@ -387,7 +387,8 @@ else ...@@ -387,7 +387,8 @@ else
fi fi
echo -e "[rclone config]" $G_"OK"$_N echo -e "[rclone config]" $G_"OK"$_N
else else
echo -e "[rclone config]" $R_"Problem finding rclone/age"$_N echo -e "[rclone config]" $R_"Problem finding rclone/age\n"$_N
exit 1
fi fi
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment