| author | ymh <ymh.work@gmail.com> |
| Tue, 15 Nov 2016 18:27:17 +0100 | |
| changeset 426 | d8ae6c0c0a0a |
| parent 28 | b0b56e0f8c7f |
| permissions | -rwxr-xr-x |
#!/bin/bash # delete.sh - Made for Puppi # Sources common header for Puppi scripts . $(dirname $0)/header || exit 10 # Manage script variables if [ $1 ] ; then tobedeleted=$1 else echo "You must provide a file or directory to delete!" exit 2 fi if [ "$tobedeleted" = "/" ] ; then echo "Be Serious!" exit 2 fi # Move file move () { mkdir -p $workdir/$project/deleted mv $tobedeleted $workdir/$project/deleted } move