mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
Change output
This commit is contained in:
parent
7d2a42b8ad
commit
b291f5855b
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue