1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-27 05:28:37 -06:00

Increase verbosity

This commit is contained in:
Sayantan Santra 2022-07-30 03:02:57 -05:00
parent e0aac980e2
commit 28f7abbe2e

View file

@ -21,20 +21,32 @@ fi
for i in "${@:2}" for i in "${@:2}"
do do
if [ "$i" == "personal_script_dir" ]; then if [ "$i" == "personal_script_dir" ]; then
cp "$1" "/home/sintan/.local/bin/personal/" dest="/home/sintan/.local/bin/personal/"
chmod +x "/home/sintan/.local/bin/personal/$(basename "$1")" echo Copying to "$dest"...
cp "$1" "$dest"
echo Setting proper permissions...
chmod +x "$dest$(basename "$1")"
elif [ "$i" == "cron_daily" ]; then elif [ "$i" == "cron_daily" ]; then
sudo cp "$1" "/etc/cron.daily/" dest="/etc/cron.daily/"
sudo chmod +x "/etc/cron.daily/$(basename "$1")" echo Copying to "$dest"...
sudo cp "$1" "$dest"
echo Setting proper permissions...
sudo chmod +x "$dest$(basename "$1")"
elif [ "$i" == "cron_weekly" ]; then elif [ "$i" == "cron_weekly" ]; then
sudo cp "$1" "/etc/cron.weekly/" dest="/etc/cron.weekly/"
sudo chmod +x "/etc/cron.weekly/$(basename "$1")" echo Copying to "$dest"...
sudo cp "$1" "$dest"
echo Setting proper permissions...
sudo chmod +x "$dest$(basename "$1")"
elif [ "$i" == "cron_monthly" ]; then elif [ "$i" == "cron_monthly" ]; then
sudo cp "$1" "/etc/cron.monthly/" dest="/etc/cron.monthly/"
sudo chmod +x "/etc/cron.monthly/$(basename "$1")" echo Copying to "$dest"...
sudo cp "$1" "$dest"
echo Setting proper permissions...
sudo chmod +x "$dest$(basename "$1")"
else echo "Unrecognized destination: $i" else echo "Unrecognized destination: $i"
fi fi