Source Update

This commit is contained in:
Christer Warén 2024-04-28 01:26:18 +03:00
parent 0da7c1ade1
commit 824ca7168c
2 changed files with 13 additions and 17 deletions

View File

@ -2,18 +2,16 @@ wx-stop () {
echo " " echo " "
echo " " echo " "
echo " " echo " "
if [[ -d "./src" ]] if [[ -f "./wx" ]] && [[ -d "./src" ]]
then 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 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 mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null chmod +x wx &> /dev/null
else fi
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null 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 sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null sudo chmod +x /usr/bin/wx &> /dev/null
fi
exit 1 exit 1
} }

12
wx
View File

@ -159,7 +159,7 @@ wx-login() {
fi fi
fi fi
echo "" echo ""
echo $VAULT_LOGIN
wx-start wx-start
else else
echo -n $wxBold echo -n $wxBold
@ -222,19 +222,17 @@ wx-stop () {
echo " " echo " "
echo " " echo " "
echo " " echo " "
if [[ -d "./src" ]] if [[ -f "./wx" ]] && [[ -d "./src" ]]
then 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 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 mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null chmod +x wx &> /dev/null
else fi
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null 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 sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null sudo chmod +x /usr/bin/wx &> /dev/null
fi
exit 1 exit 1
} }