aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-09-08 18:43:06 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2009-09-08 18:43:06 +0000
commit877edc5c5e39e4aa41a392bf5c87070a5752a172 (patch)
tree786b8983b4dde057043f783323db9f3c8a1915eb /src
parent974dbf9c262921502d73d2fc527146deb78db693 (diff)
downloadsos-877edc5c5e39e4aa41a392bf5c87070a5752a172.tar.gz
fix rh-upload to not fail if ftp_res is nonzero|empty
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@637 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rwxr-xr-xsrc/extras/rh-upload2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extras/rh-upload b/src/extras/rh-upload
index 5837b787..6ec04511 100755
--- a/src/extras/rh-upload
+++ b/src/extras/rh-upload
@@ -251,7 +251,7 @@ function closure(){
echov 1 "## Your file was split and the hunks are in: $Split_dir/ "
fi
- if [ "$Ftp_res" -eq 0 ]; then
+ if [ -n "$Ftp_res" ] && [ "$Ftp_res" -eq 0 ]; then
echov 1 "This script has completed successfully the upload."
if [ "$Compress" != 0 ] || [ "$Split" != 0 ]; then
echov 1 "You performed file encryption and/or file splitting."