blob: 39a0e07bdaab5607e9a1b4f46e3e8aba6501880b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
if [ "$(id -u)" == "0" ]
then
echo "Please do not run git as root, your regular user account is enough :)"
echo
echo "If you need to run git with root rights for some other application than"
echo "what comes preinstalled on this image you can remove this sanity check:"
echo
echo " sudo rm /root/bin/git"
echo
echo "You might have to restart your login session after doing that."
exit 1
fi
exec /usr/bin/git "$@"
|