Close program if cd fails

This commit is contained in:
Manuel Thalmann 2024-10-27 11:47:18 +01:00
parent 386d97b3a5
commit b8a2bb5728

View file

@ -10,7 +10,7 @@ then
cat /sys/class/backlight/*/max_brightness > /sys/class/backlight/*/brightness cat /sys/class/backlight/*/max_brightness > /sys/class/backlight/*/brightness
fi fi
cd "PortValhalla" cd "/root/PortValhalla" || exit
git diff -p -R --no-ext-diff --no-color --diff-filter=M \ git diff -p -R --no-ext-diff --no-color --diff-filter=M \
| grep -E "^(diff|(old|new) mode)" --color=never \ | grep -E "^(diff|(old|new) mode)" --color=never \