Use beautysh to format the code.

This commit is contained in:
Storm Dragon 2022-03-11 12:43:22 -05:00
parent 94324c9290
commit 1d5a01d79c

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
license() { license() {
cat << EOF cat << EOF
■The contents of this file are subject to the Common Public Attribution ■The contents of this file are subject to the Common Public Attribution
License Version 1.0 (the ■License■); you may not use this file except in License Version 1.0 (the ■License■); you may not use this file except in
compliance with the License. You may obtain a copy of the License at compliance with the License. You may obtain a copy of the License at
@ -78,9 +78,9 @@ update() {
local downloadFile="audiogame-manager.mac" local downloadFile="audiogame-manager.mac"
else else
if [[ "$(uname -m)" == "armv7l" ]]; then if [[ "$(uname -m)" == "armv7l" ]]; then
local downloadFile="audiogame-manager.arm" local downloadFile="audiogame-manager.arm"
else else
local downloadFile="audiogame-manager" local downloadFile="audiogame-manager"
fi fi
fi fi
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then
@ -106,7 +106,7 @@ open_url() {
open "${*}" 2> /dev/null open "${*}" 2> /dev/null
else else
xdg-open "${*}" 2> /dev/null xdg-open "${*}" 2> /dev/null
fi fi
} }
# Create desktop launcher file # Create desktop launcher file
@ -135,7 +135,7 @@ desktop_launcher() {
'StartupNotify=false' 'StartupNotify=false'
'Keywords=game;' 'Keywords=game;'
'Categories=Game;' 'Categories=Game;'
'Version=1.0') 'Version=1.0')
for i in "${dotDesktop[@]}" ; do for i in "${dotDesktop[@]}" ; do
echo "$i" >> "${desktopFile}" echo "$i" >> "${desktopFile}"
done done
@ -147,7 +147,7 @@ desktop_launcher() {
# Create the clipboard reading function for Sequence Storm # Create the clipboard reading function for Sequence Storm
write_sequence_storm_reader() { write_sequence_storm_reader() {
if -e ~/.SequenceStormReader ]]; then if -e ~/.SequenceStormReader ]]; then
return return
fi fi
# Here-document start # Here-document start