diff options
-rwxr-xr-x | libremakepkg | 2 | ||||
-rwxr-xr-x | librestage | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libremakepkg b/libremakepkg index e9fe1a2..b02b778 100755 --- a/libremakepkg +++ b/libremakepkg @@ -60,7 +60,7 @@ while getopts ${libremakepkgargs} arg ; do esac done -if [ $UID -ne 0 ]; then +if [ !-w / ]; then error "This script must be run as root" exit 1 fi @@ -79,7 +79,7 @@ for _arch in ${ARCHES[@]}; do pkgpath=$(find ${PKGDEST}/ -type f -name "${pkg}-${pkgver}-${pkgrel}-${_arch}${PKGEXT}") - [[ -z ${pkgpath} ]] && continue; + [[ -z ${pkgpath} ]] && continue pkgfile=$(basename ${pkgpath}) |