This pull request fixes two bugs I encountered after cloning the project.
If you're running a root shell (that is, $EUID equals 0),
case $EUID in
0)
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) return 0 ;;
esac
;;
will return 0, although the current shell is not an ssh shell at all! My first commit fixes this.
Secondly, the _branch_changes() relies on git's output. This does not work, however, if git's default language is not English. Setting LC_ALL=C before the git command fixes this.
This pull request fixes two bugs I encountered after cloning the project.
$EUID
equals 0),will return 0, although the current shell is not an ssh shell at all! My first commit fixes this.
Secondly, the
_branch_changes()
relies on git's output. This does not work, however, if git's default language is not English. SettingLC_ALL=C
before the git command fixes this.