diff options
Diffstat (limited to 'chownme')
-rwxr-xr-x | chownme | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/bin/bash +# +# Chown a destination to the current user. +# + +# Parameters +BASENAME="`basename $0`" +DEST="$*" +ME="$(whoami)" + +# Check +if [ -z "$1" ]; then + echo "usage: $BASENAME <dest>" + exit 1 +fi + +# Proceed +sudo chown -R $ME. "$DEST" |