diff --git a/.github/workflows/test-apps.yml b/.github/workflows/test-apps.yml index d6184c8c2..2c589a056 100644 --- a/.github/workflows/test-apps.yml +++ b/.github/workflows/test-apps.yml @@ -94,14 +94,24 @@ jobs: script_content=$(curl -Ls https://raw.githubusercontent.com/ivan-hc/AM/main/programs/x86_64/"${{ matrix.file }}") pure_arg=$(echo "${{ matrix.file }}" | sed 's/\.appimage//g; s/\^debian-testing-//g; s/\-appimage$//g' | sed 's:.*/::') if [ ! -d /opt/"$pure_arg" ] \ - && [ ${{ matrix.file }} != code ] \ + && [ ${{ matrix.file }} != code ] && [ ${{ matrix.file }} != npm ] \ && [ -z "$(PATH=/usr/local/bin command -v "$pure_arg" 2>/dev/null)" ] \ - && ! echo "$script_content" | grep -q "^#.*spooky\|^read \|\$SUDO_CMD\|=platform-tools$\|=node$\|=kdegames$\|=kdeutils$" \ + && ! echo "$script_content" | grep -q "^#.*spooky\|^read \|\$SUDO_CMD" \ && timeout "$TIMEOUT"m am -i "${{ matrix.file }}" --debug; then echo "" echo " Structure of the directory in /opt" echo "" - [ -d /opt/"${{ matrix.file }}" ] && ls /opt/"${{ matrix.file }}" || ls /opt/"$pure_arg" + if test -d /opt/kdegames; then + ls /opt/kdegames + elif test -d /opt/kdeutils; then + ls /opt/kdeutils + elif test -d /opt/platform-tools; then + ls /opt/platform-tools + elif test -d /opt/"${{ matrix.file }}"; then + ls /opt/"${{ matrix.file }}" + else + ls /opt/"$pure_arg" + fi echo "" echo "-------------------------------------------------------------" echo ""