Source Update
This commit is contained in:
parent
4b80a15e05
commit
ee301359c7
@ -34,8 +34,12 @@ if [[ -d "./src" ]]; then
|
|||||||
echo ">>> Building... <<<"
|
echo ">>> Building... <<<"
|
||||||
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php
|
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php
|
||||||
else
|
else
|
||||||
cd /opt/wx
|
echo ">>> Updating... <<<"
|
||||||
curl
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
7
wx
7
wx
@ -33,6 +33,13 @@ warencli-update() {
|
|||||||
if [[ -d "./src" ]]; then
|
if [[ -d "./src" ]]; then
|
||||||
echo ">>> Building... <<<"
|
echo ">>> Building... <<<"
|
||||||
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user