From 877edc5c5e39e4aa41a392bf5c87070a5752a172 Mon Sep 17 00:00:00 2001 From: astokes Date: Tue, 8 Sep 2009 18:43:06 +0000 Subject: 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 --- src/extras/rh-upload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extras/rh-upload') 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." -- cgit