OSDN Git Service
(root)
/
serene
/
BasixToXfce.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50e22f2
)
初期化を追加
master
author
hayao
<shun819.mail@gmail.com>
Sat, 25 May 2019 04:27:50 +0000
(13:27 +0900)
committer
hayao
<shun819.mail@gmail.com>
Sat, 25 May 2019 04:27:50 +0000
(13:27 +0900)
BasixXfceScript.bash
patch
|
blob
|
history
diff --git
a/BasixXfceScript.bash
b/BasixXfceScript.bash
index
a63f0a2
..
86ac5e3
100644
(file)
--- a/
BasixXfceScript.bash
+++ b/
BasixXfceScript.bash
@@
-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