Source Update

This commit is contained in:
Christer Warén
2024-04-27 20:08:15 +03:00
parent a1ff2b40d7
commit 3daa8a84dc
11 changed files with 199 additions and 194 deletions

19
src/functions/stop.sh Normal file
View File

@@ -0,0 +1,19 @@
wx-stop () {
echo " "
echo " "
echo " "
if [[ -d "./src" ]]
then
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null
else
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
exit 1
}