mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 13:18:35 -06:00
Increase verbosity
This commit is contained in:
parent
e0aac980e2
commit
28f7abbe2e
1 changed files with 20 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue