blob: 9b2289ad8e2357087a989a66db628aa5d572fc3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#! /bin/sh
set -euf
cd $(dirname $(readlink -f $0))/../..
id=`ls -lnd . | awk '{print$3}'`
if test "${nosudo-false}" != true -a `id -u` != $id; then
echo "we're going sudo..." >&2
exec sudo -u "#$id" "$0" "$@"
exit 23 # go to hell
fi
echo "// is $PWD owned by $id"
git pull
|