From a3fc1d1929fb7627546125c55da650eb9a18a940 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 1 Mar 2022 17:26:01 -0300 Subject: [PATCH] Run shellcheck --- pkgbuild.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index 873da96..25406d8 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -17,7 +17,7 @@ installAurDeps() { set +e pkgInfo=$(pacman -Ss "${pkgName}" 2> /dev/null) set -e - if ! echo $pkgInfo | grep -q "\/${pkgName} "; then + if ! echo "$pkgInfo" | grep -q "\/${pkgName} "; then aurPkgs+=("$pkgName") fi done @@ -106,7 +106,6 @@ runScript() { getInputs addUser - baseDir="$PWD" if [ -n "$pkgDir" ] && [ "$pkgDir" != "." ]; then inBaseDir=false cd "$pkgDir"