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:
parent
6be3b8527d
commit
7b1c496add
1 changed files with 7 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue