diff --git a/functions b/functions index d75c11d..92ac839 100644 --- a/functions +++ b/functions @@ -401,7 +401,7 @@ just_get () { fi if [ -e "$base" ]; then cp "$base" "$dest" - return 0 + return $? else return 1 fi @@ -409,7 +409,7 @@ just_get () { local ssh_dest="$(echo $from | sed -e 's#ssh://##' -e 's#/#:/#')" if [ -n "$ssh_dest" ]; then scp "$ssh_dest" "$dest" - return 0 + return $? else return 1 fi