1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 05:08:36 -06:00

Add root_scripts location

This commit is contained in:
Sayantan Santra 2022-10-13 19:50:10 -05:00
parent 6be3b8527d
commit 7b1c496add

View file

@ -48,6 +48,13 @@ do
echo Making it executable... echo Making it executable...
sudo chmod +x "$dest$(basename "$1")" sudo chmod +x "$dest$(basename "$1")"
elif [ "$i" == "root_scripts" ]; then
dest="/usr/local/bin/"
echo Copying to "$dest"...
sudo cp "$1" "$dest"
echo Making it executable...
sudo chmod +x "$dest$(basename "$1")"
else echo "Unrecognized destination: $i" else echo "Unrecognized destination: $i"
fi fi
done done