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

exit if problem finding rclone/age

parent 8f59ef9a
Branches
No related tags found
No related merge requests found
......@@ -377,7 +377,7 @@ elif [ -f $RCLONE_DIR/rclone.conf ]; then
else
emptypass=$(grep -F "[compbackup]" -A4 $RCLONE_DIR/rclone.conf|awk -F "=" 'NR==5,//{print $2}')
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
fi
fi
......@@ -387,7 +387,8 @@ else
fi
echo -e "[rclone config]" $G_"OK"$_N
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
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment