Fix shellcheck warnings.

This commit is contained in:
Taffer 2019-12-28 11:55:06 -05:00
parent ac61a305ba
commit b0d5517b5e
8 changed files with 18 additions and 21 deletions

View File

@ -1 +1,2 @@
#!/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

View File

@ -1,5 +1,4 @@
#!/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
cd /home/cpi/games/PICO-8/pico-8 || exit
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
touch .done

View File

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

View File

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

View File

@ -1,15 +1,15 @@
#!/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 "5" ]; then
echo '{"type":"once","content":"Low Battery: 5% of battery remaining"}'
elif [ "$BAT_PNT" -lt "10" ]; then
echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}'
fi
if [ "$BAT_PNT" -lt "5" ]; then
echo '{"type":"once","content":"Low Battery: 5% of battery remaining"}'
elif [ "$BAT_PNT" -lt "10" ]; then
echo '{"type":"once","content":"Low Battery: 10% of battery remaining"}'
fi
else
echo $BAT_PNT
echo "$BAT_PNT"
fi

View File

@ -1,14 +1,13 @@
#!/bin/bash
cd /home/cpi/launcher
cd /home/cpi/launcher || exit
feh --bg-center /home/cpi/launcher/sys.py/gameshell/wallpaper/updating.png
git pull
git reset --hard $1
git reset --hard "$1"
git submodule init
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
./load.sh