Skip to content

Commit

Permalink
[F] Fix shellcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Aug 25, 2024
1 parent 0f744ff commit 36d87c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -2299,9 +2299,10 @@ get_packages() {
manager=appimage && has appimaged || [ -f "$HOME"/.config/appimagelauncher.cfg ] &&
if [ -f "$HOME"/.config/appimagelauncher.cfg ]; then
ALDIR=$(grep "destination" "$HOME/.config/appimagelauncher.cfg" --color=never | sed 's/^.*= //')
# shellcheck disable=SC2010
[ "$(ls -w 1 "$ALDIR" | grep -ic "AppImage")" = "0" ] && unset ALDIR
fi &&
if [ -f "$HOME"/.local/bin/*.[Aa]pp[Ii]mage ]; then
if find "$HOME"/.local/bin/ -type f -name '*.[Aa]pp[Ii]mage' -print -quit | grep -q .; then
AIDIR="$HOME/.local/bin"
fi &&
dir "$AIDIR/*.[Aa]pp[Ii]mage \
Expand Down

0 comments on commit 36d87c2

Please sign in to comment.