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
license() {
cat << EOF
cat << EOF
■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
compliance with the License. You may obtain a copy of the License at
@ -78,9 +78,9 @@ update() {
local downloadFile="audiogame-manager.mac"
else
if [[ "$(uname -m)" == "armv7l" ]]; then
local downloadFile="audiogame-manager.arm"
local downloadFile="audiogame-manager.arm"
else
local downloadFile="audiogame-manager"
local downloadFile="audiogame-manager"
fi
fi
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
else
xdg-open "${*}" 2> /dev/null
fi
fi
}
# Create desktop launcher file
@ -135,7 +135,7 @@ desktop_launcher() {
'StartupNotify=false'
'Keywords=game;'
'Categories=Game;'
'Version=1.0')
'Version=1.0')
for i in "${dotDesktop[@]}" ; do
echo "$i" >> "${desktopFile}"
done
@ -147,7 +147,7 @@ desktop_launcher() {
# Create the clipboard reading function for Sequence Storm
write_sequence_storm_reader() {
if -e ~/.SequenceStormReader ]]; then
if -e ~/.SequenceStormReader ]]; then
return
fi
# Here-document start