From 7e206ce3995e080907ddb1a75ca779aff9b3c5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Mon, 1 Aug 2016 19:30:19 +0200 Subject: Enable run command only after backup specification --- backuper.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backuper.sh b/backuper.sh index 826e34a..a354c06 100644 --- a/backuper.sh +++ b/backuper.sh @@ -149,6 +149,7 @@ after() { } run() { + [ -z "$COMMAND" -a -z "$PLACES" ] && error "Specify backup before run command" title "Run command" echo "$@" echo $@ | /usr/bin/time -f "$(time_fmt "Command took")" $REMOTE sh -s -- cgit v1.2.3