1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -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...
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"
fi
done