diff --git a/restore_file.sh b/restore_file.sh
old mode 100644
new mode 100755
index 5f1ba76c7e980f2fd330225ca56f9145d6afcf1a..d6353276e603431bf8b40290333150e945b33691
--- a/restore_file.sh
+++ b/restore_file.sh
@@ -7,6 +7,7 @@ if [ -z "$2" ]; then
     echo "restore_path      :   path to restore without leading slash"
     echo "destination_path  :   path to download the file(s), duplicity will not override existing files"
     echo "timeago           :   optionnal : the age of the version we want to restore, for instance 6D for 6 days ago"
+    exit 1
 fi
 
 if [ ! -z "$3" ]; then