From 66dc36627309b4ed60c043764008df2306f1af4d Mon Sep 17 00:00:00 2001 From: osm0sis Date: Wed, 31 Jul 2024 16:47:46 -0300 Subject: [PATCH] Minor module script improvements --- module/template/customize.sh | 2 +- module/template/service.sh | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/module/template/customize.sh b/module/template/customize.sh index 71d2e1b..32c747f 100644 --- a/module/template/customize.sh +++ b/module/template/customize.sh @@ -93,7 +93,7 @@ CONFIG_DIR=/data/adb/tricky_store if [ ! -d "$CONFIG_DIR" ]; then ui_print "- Creating configuration directory" mkdir -p "$CONFIG_DIR" - [ ! -f "$CONFIG_DIR/spoof_build_vars" ] && touch "$CONFIG_DIR/spoof_build_vars" + touch "$CONFIG_DIR/spoof_build_vars" fi if [ ! -f "$CONFIG_DIR/keybox.xml" ]; then ui_print "- Adding default software keybox" diff --git a/module/template/service.sh b/module/template/service.sh index 9acbb09..ea76382 100644 --- a/module/template/service.sh +++ b/module/template/service.sh @@ -5,10 +5,7 @@ MODDIR=${0%/*} cd $MODDIR ( -while [ true ]; do - ./daemon - if [ $? -ne 0 ]; then - exit 1 - fi +while true; do + ./daemon || exit 1 done ) &