From b291f5855b4600e0b25ca6681921c970ae5c839d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 31 Jul 2022 00:29:52 -0500 Subject: [PATCH] Change output --- push_script_to.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/push_script_to.sh b/push_script_to.sh index 03db302..df24f25 100644 --- a/push_script_to.sh +++ b/push_script_to.sh @@ -24,28 +24,28 @@ do dest="/home/sintan/.local/bin/personal/" echo Copying to "$dest"... cp "$1" "$dest" - echo Setting proper permissions... + echo Making it executable... chmod +x "$dest$(basename "$1")" elif [ "$i" == "cron_daily" ]; then dest="/etc/cron.daily/" echo Copying to "$dest"... sudo cp "$1" "$dest" - echo Setting proper permissions... + echo Making it executable... sudo chmod +x "$dest$(basename "$1")" elif [ "$i" == "cron_weekly" ]; then dest="/etc/cron.weekly/" echo Copying to "$dest"... sudo cp "$1" "$dest" - echo Setting proper permissions... + echo Making it executable... sudo chmod +x "$dest$(basename "$1")" elif [ "$i" == "cron_monthly" ]; then dest="/etc/cron.monthly/" echo Copying to "$dest"... sudo cp "$1" "$dest" - echo Setting proper permissions... + echo Making it executable... sudo chmod +x "$dest$(basename "$1")" else echo "Unrecognized destination: $i"