|
|
@@ -134,10 +134,11 @@ then
|
|
|
echo "[!] Automated packaging disabled, `uname` isn't recognized"
|
|
|
fi
|
|
|
|
|
|
-if ! [ $scp = 0 ]; then
|
|
|
+if ! [ $scp = "0" ]; then
|
|
|
+echo "PWD: $PWD"
|
|
|
remotedate="`ssh -q -i misc/id_dsa bryan@endurance.quadspeedi.net ls -al public_html/nightly/${os}-current.tar.gz | \
|
|
|
sed -e 's/.*\-> \([0-1][0-2]\.[0-3][0-9]\.[0-9][0-9][0-9][0-9]\)\-.*/\1/'`"
|
|
|
- if [ ${remotedate} = ${builddate} ]; then
|
|
|
+ if [ "${remotedate}" = "${builddate}" ]; then
|
|
|
exit 0
|
|
|
fi
|
|
|
fi
|
|
|
@@ -235,7 +236,7 @@ if [ $nopkg = "0" -o $pkg = "1" ]; then
|
|
|
chmod 0700 misc/id_dsa
|
|
|
scp -i misc/id_dsa -B -p -C ${PACKNAME}.$os-$ver${d}.tar.${ext} $scp
|
|
|
fi
|
|
|
-elif ! [ $scp = 0 ]; then
|
|
|
+elif ! [ $scp = "0" ]; then
|
|
|
cp hub hub.$os-$ver${d}-${builddate} > /dev/null 2>&1
|
|
|
cp leaf leaf.$os-$ver${d}-${builddate} > /dev/null 2>&1
|
|
|
#This MALLOC business is to not Abort 'tar' due to some bug it has.
|