[F] Fix shellcheck warnings

This commit is contained in:
Azalea Gui 2024-08-25 00:02:55 -04:00
parent 0dea6eb11b
commit 0f744ff815

View file

@ -2296,12 +2296,12 @@ get_packages() {
# Get AppImageLauncher Application directory, # Get AppImageLauncher Application directory,
# See: https://github.com/TheAssassin/AppImageLauncher/wiki/Configuration#settings-file # See: https://github.com/TheAssassin/AppImageLauncher/wiki/Configuration#settings-file
manager=appimage && has appimaged || [ -f $HOME/.config/appimagelauncher.cfg ] && manager=appimage && has appimaged || [ -f "$HOME"/.config/appimagelauncher.cfg ] &&
if [ -f $HOME/.config/appimagelauncher.cfg ]; then if [ -f "$HOME"/.config/appimagelauncher.cfg ]; then
ALDIR=$(cat $HOME/.config/appimagelauncher.cfg | grep "destination" --color=never | sed 's/^.*= //') ALDIR=$(grep "destination" "$HOME/.config/appimagelauncher.cfg" --color=never | sed 's/^.*= //')
[ $(ls -w 1 $ALDIR | grep -ic "AppImage") = "0" ] && unset ALDIR [ "$(ls -w 1 "$ALDIR" | grep -ic "AppImage")" = "0" ] && unset ALDIR
fi && 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" AIDIR="$HOME/.local/bin"
fi && fi &&
dir "$AIDIR/*.[Aa]pp[Ii]mage \ dir "$AIDIR/*.[Aa]pp[Ii]mage \