1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -06:00

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