projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b693f30
)
corrected error in seeking packages
dev
author
Chris Koeritz
<fred@gruntose.com>
Wed, 17 Dec 2025 17:11:21 +0000
(12:11 -0500)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/scripts/system/seek_package.sh
b/scripts/system/seek_package.sh
index 3ee874fbdc072ae9d2d76beadc4fa38cda01e204..5fa92aba49addb2b8b3327a3de4b1f03bd28ff41 100644
(file)
--- a/
scripts/system/seek_package.sh
+++ b/
scripts/system/seek_package.sh
@@
-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