Source Update
This commit is contained in:
parent
d3901ba519
commit
8808aa7b93
21
src/base.sh
21
src/base.sh
@ -18,26 +18,25 @@ echo -n "
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
echo -n "Warén CLI "
|
echo -n "Warén CLI "
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
if [[ -d "./src" ]]
|
}
|
||||||
then
|
|
||||||
|
stop () {
|
||||||
|
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
|
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
|
else
|
||||||
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" ]]
|
if [[ -d "/usr/bin" ]]
|
||||||
then
|
then
|
||||||
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
|
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
|
||||||
fi
|
fi
|
||||||
sudo chmod +x /usr/bin/wx &> /dev/null
|
sudo chmod +x /usr/bin/wx &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
stop () {
|
|
||||||
echo " "
|
echo " "
|
||||||
echo " "
|
echo " "
|
||||||
exit 1
|
exit 1
|
||||||
|
21
wx
21
wx
@ -18,26 +18,25 @@ echo -n "
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
echo -n "Warén CLI "
|
echo -n "Warén CLI "
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
if [[ -d "./src" ]]
|
}
|
||||||
then
|
|
||||||
|
stop () {
|
||||||
|
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
|
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
|
else
|
||||||
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" ]]
|
if [[ -d "/usr/bin" ]]
|
||||||
then
|
then
|
||||||
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
|
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
|
||||||
fi
|
fi
|
||||||
sudo chmod +x /usr/bin/wx &> /dev/null
|
sudo chmod +x /usr/bin/wx &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
stop () {
|
|
||||||
echo " "
|
echo " "
|
||||||
echo " "
|
echo " "
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user