Advertisement
Guest User

/home/username/scripts/hardlinkautodl.sh

a guest
May 25th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/sh
  2. custom1=$1
  3. name=$2
  4. base_path=$3
  5. sync_path="~/Sync/"
  6.  
  7. {
  8. if [ $1 = zzautodl ]; then
  9. cp -val "$3" "$sync_path"
  10. echo "created hardlink of $name in ~/Sync/ folder"
  11.  
  12. fi
  13. } 2>&1 | ts >> ~/logs/hardlinkautodl.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement