# /system/addon.d/99-perso-google-clean-more.sh
#
-# we partially use the script at install, we need to have some fallback
-# if backuptool functions are not present
-if [ -e /tmp/backuptool.functions ]; then
+# we partially use the script at install, if so, $S is allready defined
+if [ -z $S ]; then
. /tmp/backuptool.functions
-elif [ -z $S ]; then
- echo "$S should be defined by the caller"
-else
- echo "S=$S"
fi
if [ -z $backuptool_ab ]; then
SYS=$S
# /system/addon.d/99-perso-google-clean.sh
#
-# we partially use the script at install, we need to have some fallback
-# if backuptool functions are not present
-if [ -e /tmp/backuptool.functions ]; then
+# we partially use the script at install, if so, $S is allready defined
+if [ -z $S ]; then
. /tmp/backuptool.functions
-elif [ -z $S ]; then
- echo "$S should be defined by the caller"
-else
- echo "S=$S"
fi
if [ -z $backuptool_ab ]; then
SYS=$S
# /system/addon.d/99-perso.sh
#
-# we partially use the script at install, we need to have some fallback
-# if backuptool functions are not present
-if [ -e /tmp/backuptool.functions ]; then
+# we partially use the script at install, if so, $S is allready defined
+if [ -z $S ]; then
. /tmp/backuptool.functions
-elif [ -z $S ]; then
- echo "$S should be defined by the caller"
-else
- echo "S=$S"
fi
if [ -z $backuptool_ab ]; then
SYS=$S