Skip to content

Commit

Permalink
Update move-apks.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Dec 7, 2023
1 parent 64e7f4f commit 32b9b8e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/scripts/move-apks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ shopt -s globstar nullglob extglob
cp -R ~/apk-artifacts/ $PWD
APKS=( **/*".apk" )

echo "Moving ${#APKS[@]} APKs"
# Fail if too little extensions seem to have been built
if [ "${#APKS[@]}" -le "50" ]; then
echo "Insufficient amount of APKs found. Please check the project configuration."
exit 1
else
echo "Moving ${#APKS[@]} APKs"
fi

DEST=$PWD/apk
rm -rf $DEST && mkdir -p $DEST
Expand Down

0 comments on commit 32b9b8e

Please sign in to comment.