diff options
Diffstat (limited to 'post_update.sh')
-rwxr-xr-x | post_update.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/post_update.sh b/post_update.sh index c07d65ae..2b42dba9 100755 --- a/post_update.sh +++ b/post_update.sh @@ -1,8 +1,13 @@ #!/bin/bash +# external-updater provides: # $1 Path to the new version. # $2 Path to the old version. +if [ "$#" -lt 1 ]; then + echo 'need at least the path to the current version!' + exit 1 +fi cd $1 set -e |