diff --git a/scripts/pkg.sh b/scripts/pkg.sh index 85f94bb5..8502f0a7 100644 --- a/scripts/pkg.sh +++ b/scripts/pkg.sh @@ -490,7 +490,10 @@ upload_file() { local f="$1" local t="$2" - [ -f $DIST_PCKG_DIR/$f ] || fatal "+ $DIST_PCKG_DIR/$f doesn't exit, can't upload" + [ -f $DIST_PCKG_DIR/$f ] || { + "+ $DIST_PCKG_DIR/$f doesn't exit, can't upload" + return 1 + } local os_name=`os | sed 's/-.*//'` local os_version=`os | sed 's/[^-]\+-//'` local target_base=rsync_ssh://root@ftp.jannet.de:/srv/ftp/pub/packages/linux/$os_name/$os_version/inst-source