Move wi-restricted function to base and fix bash version execution

This commit is contained in:
Christer Warén
2025-06-28 15:14:49 +03:00
parent d9a7864199
commit ff4bebdc53
3 changed files with 18 additions and 23 deletions

View File

@@ -1,8 +0,0 @@
wi-restricted(){
if [[ $USER != "root" ]]
then
sudo curl https://waren.io/init.sh -o $PWD/init.sh
sudo bash $PWD/init.sh $1 $2 $3 $4 $5 $6 $7 $8 $9
exit 1
fi
}