From 66dc991ae77ecfedd28f894f410837ece56b9c7c Mon Sep 17 00:00:00 2001
From: XargonWan <XargonWan@gmail.com>
Date: Mon, 19 Sep 2022 09:28:58 +0200
Subject: [PATCH] Fixed variables system -fix2

---
 global.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/global.sh b/global.sh
index 3ed2c545..5cb2e902 100755
--- a/global.sh
+++ b/global.sh
@@ -44,6 +44,11 @@ conf_write() {
     sed -i "s%themes_folder=.*%themes_folder=$themes_folder%" "$rd_conf"
   fi
 
+  if [ ! -z "$sdcard" ]
+  then
+    sed -i "s%sdcard=.*%sdcard=$sdcard%" "$rd_conf"
+  fi
+
   echo "DEBUG: New contents:"
   cat "$rd_conf"
   echo ""