From 7b1c496adda6e84c51b8d6cac4b035dbf96ad488 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 13 Oct 2022 19:50:10 -0500 Subject: [PATCH] Add root_scripts location --- push_script_to.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/push_script_to.sh b/push_script_to.sh index df24f25..c2ec636 100644 --- a/push_script_to.sh +++ b/push_script_to.sh @@ -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 \ No newline at end of file