Merge pull request #2 from hubertbanas/master

Fix check_permissions function
This commit is contained in:
sorgelig
2019-01-31 10:24:35 +08:00
committed by GitHub

View File

@@ -18,8 +18,8 @@ check_dependencies() {
}
check_permissions () {
if [ ! -w . ]; then
exit_with_error "Cannot write to\n$PWD"
if [ ! -w ${BASEDIR} ]; then
exit_with_error "Cannot write to\n${BASEDIR}"
fi
}