Change output

This commit is contained in:
Sayantan Santra 2022-07-31 00:29:52 -05:00
parent 7d2a42b8ad
commit b291f5855b
1 changed files with 4 additions and 4 deletions

View File

@ -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"