mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 06:09:17 +00:00
refactor installer
This commit is contained in:
@@ -17,7 +17,7 @@ has_rights()
|
||||
echo "testing ${1} is ${2}"
|
||||
[ ! -e "$1" ] && echo "`basename $1` does not exist" && exit 1
|
||||
local mode=`stat -L -c '%a' "$1"`
|
||||
[ "${mode}" != "$2" ] && echo "bad mode for `basename $1`" && exit 1
|
||||
[ "${mode}" != "$2" ] && echo "bad mode for `basename $1` (${mode} VS expected ${2})" && exit 1
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user