[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-05-30 21:47:54 +00:00
parent 9a4c689a6a
commit 45b7111d5b

View File

@ -45,7 +45,7 @@ function waFindInstalled() {
for F in $(ls "${DIR}/apps"); do for F in $(ls "${DIR}/apps"); do
# shellcheck disable=SC1090,SC1091 # shellcheck disable=SC1090,SC1091
. "$DIR/apps/$F/info" . "$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 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 "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 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() { function waConfigureApp() {
if [[ -z $1 ]]; then if [[ -z $1 ]]; then
return 1 return 1
fi fi
if [ -z "$ICON" ]; then if [ -z "$ICON" ]; then
ICON=$SYS_PATH/apps/$1/icon.$2 ICON=$SYS_PATH/apps/$1/icon.$2
@ -118,10 +118,10 @@ MimeType=$MIME_TYPES
function waConfigureApps() { function waConfigureApps() {
APPS=() APPS=()
while IFS= read -r F; do while IFS= read -r F; do
[[ -n $F ]] || continue [[ -n $F ]] || continue
# shellcheck disable=SC1090 # shellcheck disable=SC1090
F=$(echo $F | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') F=$(echo $F | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
echo \"$F\" >> test echo \"$F\" >> test
. "$DIR/apps/$F/info" . "$DIR/apps/$F/info"
APPS+=("$FULL_NAME ($F)") APPS+=("$FULL_NAME ($F)")
INSTALLED_EXES+=("$(echo "${WIN_EXECUTABLE##*\\}" | tr '[:upper:]' '[:lower:]')") INSTALLED_EXES+=("$(echo "${WIN_EXECUTABLE##*\\}" | tr '[:upper:]' '[:lower:]')")