rely on --root in if statement

This commit is contained in:
Rasmus Steinke 2015-07-14 21:45:27 +02:00
parent 62981f255a
commit 7120678a52

View File

@ -24,7 +24,7 @@ if [[ -z $BROWSER ]]; then
export BROWSER=xdg-open
fi
if [[ -n "$2" ]]; then
if [[ -n "$2" && "$1" == "--root" ]]; then
root="${2}"
else
: