Skip to content

Commit

Permalink
fix build-maestro-ios-runner.sh (#1835)
Browse files Browse the repository at this point in the history
fix build-maestro-ios-runner.sh flawed basename check
  • Loading branch information
bartekpacia committed Jul 29, 2024
1 parent 8b5eeb0 commit be6c765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maestro-ios-xctest-runner/build-maestro-ios-runner.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

if [ "$PWD" != "maestro" ]; then
if [ "$(basename "$PWD")" != "maestro" ]; then
echo "This script must be run from the maestro root directory"
exit 1
fi
Expand All @@ -25,4 +25,4 @@ mv "$PWD"/build/Products/*.xctestrun ./maestro-ios-driver/src/main/resources/mae

(cd ./maestro-ios-driver/src/main/resources && zip -r maestro-driver-iosUITests-Runner.zip ./maestro-driver-iosUITests-Runner.app) || exit 1
(cd ./maestro-ios-driver/src/main/resources && zip -r maestro-driver-ios.zip ./maestro-driver-ios.app) || exit 1
rm -r ./maestro-ios-driver/src/main/resources/*.app || exit 1
rm -r ./maestro-ios-driver/src/main/resources/*.app || exit 1

0 comments on commit be6c765

Please sign in to comment.