Change output

This commit is contained in:
Sayantan Santra 2022-07-31 00:29:52 -05:00
parent 7d2a42b8ad
commit b291f5855b

View file

@ -24,28 +24,28 @@ do
dest="/home/sintan/.local/bin/personal/" dest="/home/sintan/.local/bin/personal/"
echo Copying to "$dest"... echo Copying to "$dest"...
cp "$1" "$dest" cp "$1" "$dest"
echo Setting proper permissions... echo Making it executable...
chmod +x "$dest$(basename "$1")" chmod +x "$dest$(basename "$1")"
elif [ "$i" == "cron_daily" ]; then elif [ "$i" == "cron_daily" ]; then
dest="/etc/cron.daily/" dest="/etc/cron.daily/"
echo Copying to "$dest"... echo Copying to "$dest"...
sudo cp "$1" "$dest" sudo cp "$1" "$dest"
echo Setting proper permissions... echo Making it executable...
sudo chmod +x "$dest$(basename "$1")" sudo chmod +x "$dest$(basename "$1")"
elif [ "$i" == "cron_weekly" ]; then elif [ "$i" == "cron_weekly" ]; then
dest="/etc/cron.weekly/" dest="/etc/cron.weekly/"
echo Copying to "$dest"... echo Copying to "$dest"...
sudo cp "$1" "$dest" sudo cp "$1" "$dest"
echo Setting proper permissions... echo Making it executable...
sudo chmod +x "$dest$(basename "$1")" sudo chmod +x "$dest$(basename "$1")"
elif [ "$i" == "cron_monthly" ]; then elif [ "$i" == "cron_monthly" ]; then
dest="/etc/cron.monthly/" dest="/etc/cron.monthly/"
echo Copying to "$dest"... echo Copying to "$dest"...
sudo cp "$1" "$dest" sudo cp "$1" "$dest"
echo Setting proper permissions... echo Making it executable...
sudo chmod +x "$dest$(basename "$1")" sudo chmod +x "$dest$(basename "$1")"
else echo "Unrecognized destination: $i" else echo "Unrecognized destination: $i"