diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22869f7..8ee7a86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,12 +52,12 @@ jobs: run: | AVDMANAGER_PATH=$(which avdmanager) echo $AVDMANAGER_PATH - AVDMANAGER_DIR="${AVDMANAGER_PATH%/../*}" + AVDMANAGER_DIR=$(dirname "$AVDMANAGER_PATH") echo $AVDMANAGER_DIR ls $AVDMANAGER_DIR mkdir $ANDROID_HOME/cmdline-tools mkdir $ANDROID_HOME/cmdline-tools/latest - cp -r $AVDMANAGER_DIR $ANDROID_HOME/cmdline-tools/latest/ + cp -r $AVDMANAGER_DIR/../* $ANDROID_HOME/cmdline-tools/latest/ ls $ANDROID_HOME/cmdline-tools/latest/ - name: Run tests 👩🏽‍💻