Merge pull request #321 from Taffer/codestyle-cleanup

shellcheck cleanup
This commit is contained in:
GNU 2020-01-07 17:07:06 +08:00 committed by GitHub
commit 879a734666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 28 additions and 21 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ screenshots/*
.DS_Store .DS_Store
sys.py/.* sys.py/.*
sys.py/*.db sys.py/*.db
launcher.sublime-workspace

View File

@ -1 +1,2 @@
retroarch #!/bin/bash
retroarch

View File

@ -1 +1,2 @@
#!/bin/bash
retroarch -L /home/cpi/apps/emulators/nxengine_libretro.so /home/cpi/games/nxengine/cavestory/data retroarch -L /home/cpi/apps/emulators/nxengine_libretro.so /home/cpi/games/nxengine/cavestory/data

View File

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
#SDL_VIDEODRIVER=x11 DISPLAY=:0 ./pico-8/pico8_dyn -splore -draw_rect 32,0,256,240 cd /home/cpi/games/PICO-8/pico-8 || exit
cd /home/cpi/games/PICO-8/pico-8
SDL_VIDEODRIVER=x11 DISPLAY=:0 ./pico8_dyn -splore -draw_rect 32,0,256,240 SDL_VIDEODRIVER=x11 DISPLAY=:0 ./pico8_dyn -splore -draw_rect 32,0,256,240

View File

@ -9,4 +9,3 @@ mkdir ~/.lexaloffle/pico-8/carts
ln -s ~/.lexaloffle/pico-8/carts/ ~/games/PICO-8/carts ln -s ~/.lexaloffle/pico-8/carts/ ~/games/PICO-8/carts
touch .done touch .done

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
FIRM=`cat /proc/driver/brcmf_fw` FIRM=$(cat /proc/driver/brcmf_fw)
if [[ $FIRM =~ .*a0.* ]] if [[ $FIRM =~ .*a0.* ]]
then then

9
launcher.sublime-project Normal file
View File

@ -0,0 +1,9 @@
{
"folders":
[
{
"path": ".",
"name": "GameShell launcher"
}
],
}

View File

@ -1,9 +1,7 @@
#!/bin/bash #!/bin/bash
BASENAME=`dirname "$0"` BASENAME=$(dirname "$0")
cd $BASENAME/sys.py cd "$BASENAME"/sys.py || exit
python run.py python run.py

View File

@ -1,15 +1,15 @@
#!/bin/bash #!/bin/bash
BAT_PNT=`upower -i $(upower -e | grep 'battery') | grep -E "state|to\ full|percentage" | awk '/perc/{print $2}' | cut -d % -f1 ` BAT_PNT=$(upower -i "$(upower -e | grep 'battery')" | grep -E "state|to\ full|percentage" | awk '/perc/{print $2}' | cut -d % -f1 )
if [ "$BAT_PNT" -lt "20" ]; then if [ "$BAT_PNT" -lt "20" ]; then
if [ "$BAT_PNT" -lt "5" ]; then if [ "$BAT_PNT" -lt "5" ]; then
echo '{"type":"once","content":"Low Battery: 5% of battery remaining"}' echo '{"type":"once","content":"Low Battery: 5% of battery remaining"}'
elif [ "$BAT_PNT" -lt "10" ]; then elif [ "$BAT_PNT" -lt "10" ]; then
echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}' echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}'
fi fi
else else
echo $BAT_PNT echo "$BAT_PNT"
fi fi

View File

@ -1,14 +1,13 @@
#!/bin/bash #!/bin/bash
cd /home/cpi/launcher cd /home/cpi/launcher || exit
feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/updating.png feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/updating.png
git pull git pull
git reset --hard $1 git reset --hard "$1"
git submodule init git submodule init
git submodule update git submodule update
cd ~/apps/Menu && git pull && cd - cd ~/apps/Menu && git pull && cd - || exit
feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/loading.png feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/loading.png
./load.sh ./load.sh