OSDN Git Service

初期化を追加 master
authorhayao <shun819.mail@gmail.com>
Sat, 25 May 2019 04:27:50 +0000 (13:27 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 25 May 2019 04:27:50 +0000 (13:27 +0900)
BasixXfceScript.bash

index a63f0a2..86ac5e3 100644 (file)
@@ -6,8 +6,14 @@ exec 2> >(tee -a basix-to-xfce.log)
 #============================================================================================================
 #Root判定
 if [[ ! $UID == 0 ]]; then
-    echo "Root権限が必要です"
-    exit 1;
+    echo "Root権限がない場合は実行できません"
+    exit 1
+fi
+
+
+#初期化
+if [[ -f basix-to-xfce.log ]]; then
+    rm basix-to-xfce.log
 fi