Skip to content

Commit

Permalink
Update test-apps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Jan 13, 2025
1 parent c859bf3 commit fcd79ec
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit fcd79ec

Please sign in to comment.