Skip to content

Commit

Permalink
fix: LIBNUMBER, use grep -c
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 6, 2024
1 parent 1a69e21 commit 0a210c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/database.am
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function download_lib() {
}

function _list(){
LIBNUMBER=$(grep "usr/local/lib" < "$APPSPATH"/*/remove 2> /dev/null | wc -l)
LIBNUMBER=$(cat $APPSPATH/*/remove 2> /dev/null | grep -c "usr/local/lib")
ITEMSNUMBER=$(cd "$APPSPATH" && find -name 'remove' -printf "%h\n" 2>/dev/null | sort -u | wc -l)
if [ "$AMCLI" == am ]; then
ITEMSNUMBER=$(("$ITEMSNUMBER"-1))
Expand Down

0 comments on commit 0a210c7

Please sign in to comment.