@@ -17,13 +17,13 @@ client_dir="$(git -C "$here" rev-parse --show-toplevel)"
1717
1818echo " ================================="
1919echo " ================================="
20- if [ -v KEYBASE_TEST ]; then
20+ if [ -n " $ KEYBASE_TEST" ]; then
2121 default_bucket_name=" tests.keybase.io"
2222 echo " = This build+push is a TEST. ="
23- elif [ -v KEYBASE_NIGHTLY ]; then
23+ elif [ -n " $ KEYBASE_NIGHTLY" ]; then
2424 default_bucket_name=" tests.keybase.io"
2525 echo " = This build+push is a NIGHTLY. ="
26- elif [ -v KEYBASE_RELEASE ]; then
26+ elif [ -n " $ KEYBASE_RELEASE" ]; then
2727 default_bucket_name=" prerelease.keybase.io"
2828 echo " = This build+push is a RELEASE. ="
2929else
@@ -119,7 +119,7 @@ copy_bins() {
119119 another_copy " $build_dir /rpm_repo/keybase-latest-x86_64.rpm" " s3://$1 /keybase_amd64.rpm"
120120 another_copy " $build_dir /rpm_repo/keybase-latest-i386.rpm" " s3://$1 /keybase_i386.rpm"
121121}
122- if [ -v KEYBASE_RELEASE ]; then
122+ if [ -n " $ KEYBASE_RELEASE" ]; then
123123 copy_bins " $BUCKET_NAME "
124124fi
125125
@@ -141,12 +141,12 @@ GOPATH="$release_gopath" PLATFORM="linux" "$here/../prerelease/s3_index.sh" || \
141141 echo " ERROR in s3_index.sh. Internal pages might not be updated. Build continuing..."
142142
143143NIGHTLY_DIR=" prerelease.keybase.io/nightly" # No trailing slash! AWS doesn't respect POSIX standards w.r.t double slashes
144- if [ -v KEYBASE_NIGHTLY ] ; then
144+ if [ -n " $ KEYBASE_NIGHTLY" ] ; then
145145 copy_bins " $NIGHTLY_DIR "
146146 copy_metadata " $NIGHTLY_DIR "
147147fi
148148
149- if [ -v KEYBASE_RELEASE ] ; then
149+ if [ -n " $ KEYBASE_RELEASE" ] ; then
150150 echo " Updating AUR packages"
151151 " $here /arch/update_aur_packages.sh" " $build_dir "
152152fi
0 commit comments