Code Update
This commit is contained in:
6
src/functions/header.sh
Normal file
6
src/functions/header.sh
Normal file
@ -0,0 +1,6 @@
|
||||
wx-header(){
|
||||
wx-start
|
||||
|
||||
echo ">> $1 <<"
|
||||
echo "------------------------------"
|
||||
}
|
10
src/functions/restricted.sh
Normal file
10
src/functions/restricted.sh
Normal file
@ -0,0 +1,10 @@
|
||||
wx-restricted(){
|
||||
if [[ $USER == "root" || $USER == "local" ]]
|
||||
then
|
||||
echo "Status: Command Restricted"
|
||||
echo " "
|
||||
echo " "
|
||||
echo " "
|
||||
exit 1
|
||||
fi
|
||||
}
|
@ -2,19 +2,8 @@ wx-stop (){
|
||||
echo " "
|
||||
echo " "
|
||||
echo " "
|
||||
if [[ -f "./wx" ]] && [[ -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
|
||||
fi
|
||||
|
||||
if [[ $USER != "root" && $USER != "local" ]]
|
||||
then
|
||||
mkdir $HOME/bin &> /dev/null
|
||||
curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o $HOME/bin/wx &> /dev/null
|
||||
chmod +x $HOME/bin/wx &> /dev/null
|
||||
fi
|
||||
wx-install --auto
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user