mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 09:48:50 +01:00
Fix shellcheck warnings.
This commit is contained in:
parent
ac61a305ba
commit
b0d5517b5e
@ -1 +1,2 @@
|
|||||||
retroarch
|
#!/bin/bash
|
||||||
|
retroarch
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
6
load.sh
6
load.sh
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user