Source Update

This commit is contained in:
Christer Warén 2024-04-26 04:58:29 +03:00
parent 4b80a15e05
commit ee301359c7
2 changed files with 13 additions and 2 deletions

View File

@ -34,8 +34,12 @@ if [[ -d "./src" ]]; then
echo ">>> Building... <<<"
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php
else
cd /opt/wx
curl
echo ">>> Updating... <<<"
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
if [[ -d "/usr/bin" ]]; then
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null
fi
}

7
wx
View File

@ -33,6 +33,13 @@ warencli-update() {
if [[ -d "./src" ]]; then
echo ">>> Building... <<<"
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php
else
echo ">>> Updating... <<<"
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
if [[ -d "/usr/bin" ]]; then
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null
fi
}