From fa0b7b6f8e45982f1e2317c386ef0cf49ee840c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Tue, 27 Dec 2011 20:07:08 -0600 Subject: libremakepkg: fixed conditionals toru: -p exit with 1 status if not found --- libremakepkg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libremakepkg') diff --git a/libremakepkg b/libremakepkg index 7885f1e..9af487f 100755 --- a/libremakepkg +++ b/libremakepkg @@ -53,6 +53,7 @@ MAKEPKG_ARGS="" function usage { + echo '' echo 'cd to a dir containing a PKGBUILD and run:' echo '$0 [options] [-- makechrootpkg args] [-- makepkg args]' echo 'This script will build your package on a chroot.' @@ -95,7 +96,7 @@ if [ ! -e PKGBUILD ]; then # Check if we are actually on a build directory. Do fi msg "Checking PKGBUILD for non-free issues" -if (( CHECKNONFREE )); then +if "$CHECKNONFREE"; then if ! pkgbuild-check-nonfree; then if [[ $? -eq 15 ]]; then # other errors mean fail, not nonfree @@ -107,11 +108,11 @@ if (( CHECKNONFREE )); then fi fi -if (( CLEANFIRST )); then +if "$CLEANFIRST"; then librechroot -c "$LIBRECHROOT_ARGS" "$CHROOT" fi -if (( UPDATEFIRST )); then +if "$UPDATEFIRST"; then librechroot -u "$LIBRECHROOT_ARGS" "$CHROOT" fi -- cgit v1.2.2