diff --git a/Scripts/drone-static-upload.sh b/Scripts/drone-static-upload.sh index c7209b2ae..cc3225461 100755 --- a/Scripts/drone-static-upload.sh +++ b/Scripts/drone-static-upload.sh @@ -34,9 +34,9 @@ sim_path="build/Session_sim.xcarchive/Products/Applications/Session.app" mkdir -p build -if [ ! -d $prod_path ]; then +if [ -d $prod_path ]; then cp -av $prod_path "$base" -elif [ ! -d $sim_path ]; then +elif [ -d $sim_path ]; then cp -av $sim_path "$base" else echo -e "\n\n\n\e[31;1mExpected a file to upload, found none\e[0m" >&2