From 45b7111d5b5ee554c1333987c158d5f7a610eead Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 21:47:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- installer.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/installer.sh b/installer.sh index bb5b33a..d687d6b 100755 --- a/installer.sh +++ b/installer.sh @@ -45,7 +45,7 @@ function waFindInstalled() { for F in $(ls "${DIR}/apps"); do # shellcheck disable=SC1090,SC1091 . "$DIR/apps/$F/info" - printf "IF EXIST \"%s\" ECHO %s >> \\\\\\\\tsclient\\home\\.local\\share\\winapps\\installed.tmp\n" "$WIN_EXECUTABLE" "$F" >> "$HOME/.local/share/winapps/installed.bat" + printf "IF EXIST \"%s\" ECHO %s >> \\\\\\\\tsclient\\home\\.local\\share\\winapps\\installed.tmp\n" "$WIN_EXECUTABLE" "$F" >> "$HOME/.local/share/winapps/installed.bat" done printf "powershell.exe -ExecutionPolicy Bypass -File \\\\\\\\tsclient\\home\\.local\\share\\winapps\\\\ExtractPrograms.ps1 > \\\\\\\\tsclient\home\\.local\\share\\winapps\\detected\n" >> "$HOME/.local/share/winapps/installed.bat" printf "RENAME \\\\\\\\tsclient\\home\\.local\\share\\winapps\\installed.tmp installed\n" >> "$HOME/.local/share/winapps/installed.bat" # shellcheck disable=SC2140 @@ -84,7 +84,7 @@ function waFindInstalled() { function waConfigureApp() { if [[ -z $1 ]]; then - return 1 + return 1 fi if [ -z "$ICON" ]; then ICON=$SYS_PATH/apps/$1/icon.$2 @@ -118,10 +118,10 @@ MimeType=$MIME_TYPES function waConfigureApps() { APPS=() while IFS= read -r F; do - [[ -n $F ]] || continue + [[ -n $F ]] || continue # shellcheck disable=SC1090 - F=$(echo $F | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') - echo \"$F\" >> test + F=$(echo $F | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') + echo \"$F\" >> test . "$DIR/apps/$F/info" APPS+=("$FULL_NAME ($F)") INSTALLED_EXES+=("$(echo "${WIN_EXECUTABLE##*\\}" | tr '[:upper:]' '[:lower:]')")