diff --git a/releases/build_rom.sh b/releases/build_rom.sh index b3fcc9c..2b1f85f 100755 --- a/releases/build_rom.sh +++ b/releases/build_rom.sh @@ -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 }