From 0f744ff81503cf90cb79dfb13058aab479005d12 Mon Sep 17 00:00:00 2001 From: Azalea Gui <22280294+hykilpikonna@users.noreply.github.com> Date: Sun, 25 Aug 2024 00:02:55 -0400 Subject: [PATCH] [F] Fix shellcheck warnings --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index fc4179e4..1d1f08b1 100755 --- a/neofetch +++ b/neofetch @@ -2296,12 +2296,12 @@ get_packages() { # Get AppImageLauncher Application directory, # See: https://github.com/TheAssassin/AppImageLauncher/wiki/Configuration#settings-file - manager=appimage && has appimaged || [ -f $HOME/.config/appimagelauncher.cfg ] && - if [ -f $HOME/.config/appimagelauncher.cfg ]; then - ALDIR=$(cat $HOME/.config/appimagelauncher.cfg | grep "destination" --color=never | sed 's/^.*= //') - [ $(ls -w 1 $ALDIR | grep -ic "AppImage") = "0" ] && unset ALDIR + 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/^.*= //') + [ "$(ls -w 1 "$ALDIR" | grep -ic "AppImage")" = "0" ] && unset ALDIR fi && - if [ -f $HOME/.local/bin/*.[Aa]pp[Ii]mage ]; then + if [ -f "$HOME"/.local/bin/*.[Aa]pp[Ii]mage ]; then AIDIR="$HOME/.local/bin" fi && dir "$AIDIR/*.[Aa]pp[Ii]mage \