From 6fa6358a441dfbc805ee2fe53c329f768091e873 Mon Sep 17 00:00:00 2001 From: jiho-sf Date: Sat, 8 Dec 2007 11:42:56 +0000 Subject: [PATCH] corrected a typo and added a check for modevia name definition. fall back on user name --- packaging/macosx/osx-build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh index a708c8f2c..487ed2bed 100755 --- a/packaging/macosx/osx-build.sh +++ b/packaging/macosx/osx-build.sh @@ -25,7 +25,7 @@ CONFFLAGS="--disable-static --enable-shared --enable-osxapp" # Libraries prefix (Warning: NO trailing slash) LIBPREFIX="/opt/local" # User name on Modevia -MODEVIA_USER="" +MODEVIA_NAME="" ############################################################ @@ -307,6 +307,11 @@ fi if [[ "$UPLOAD" == "t" ]] then + # Provide default for user name on modevia + if [[ "$MODEVIA_NAME" == "" ]]; then + MODEVIA_NAME=$USER + fi + # Uploasd file scp $DMGFILE $INFOFILE "$MODEVIA_NAME"@inkscape.modevia.com:inkscape/docs/macosx-snap/ status=$? if [[ $status -ne 0 ]]; then -- 2.30.2