corrected error in seeking packages dev
authorChris Koeritz <fred@gruntose.com>
Wed, 17 Dec 2025 17:11:21 +0000 (12:11 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 17 Dec 2025 17:11:21 +0000 (12:11 -0500)
was inadvertently using a grep character set match instead of the
literal thing in brackets.  oops.  dang.

scripts/system/seek_package.sh

index 3ee874fbdc072ae9d2d76beadc4fa38cda01e204..5fa92aba49addb2b8b3327a3de4b1f03bd28ff41 100644 (file)
@@ -4,11 +4,11 @@ source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 
 if [ -z "$*" ]; then
   echo This script requires a package name to find in the installed list of packages.
-  exit 1
+  exit 2
 fi
 
 if debian_like; then
-  apt -qq list "$1" 2>/dev/null | grep -q '[installed]'
+  apt -qq list "$1" 2>/dev/null | grep -q '\[installed\]'
   exit $?
 fi