Skip to content

Commit

Permalink
[F] Fix shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Aug 25, 2024
1 parent 0dea6eb commit 0f744ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0f744ff

Please sign in to comment.