aboutsummaryrefslogtreecommitdiff
path: root/chownme
blob: d0a801dc31c950e1d30e6c5e0bb4b48825fd8a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
chown -R $ME. $DEST