Hello I have the problem that pngquant installed and executed by a bash script ends with the error error: cannot open **/*.png for reading
although everything works locally.
Here is a link to the latest pipeline optimizing (#883708849) · Jobs · Independent-Eye / SuperTuxParty · GitLab.
gitlab-ci.yml file section that starts the bash script:
optimizing:
image: ubuntu:latest
stage: build_and_test
script:
- chmod +x optimization.sh
- ./optimization.sh
bash script :
#!/usr/bin/env bash
#Light-Green='\033[1;32m'
#Cyan='\033[1;36m'
printf "\033[1;36mInstaling and Updating\033[0m\n"
apt-get update
printf "\033[1;32mRepository cache updated\033[0m\n"
apt-get -y install pngquant
printf "\033[1;32mpngquant installed\033[0m\n"
pngquant **/*.png --skip-if-larger --ext=.png --force
Edit: Link to bash script optimization.sh · automation · Independent-Eye / SuperTuxParty · GitLab
Link to gitlab-ci.yml file .gitlab-ci.yml · automation · Independent-Eye / SuperTuxParty · GitLab