home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2d9634
)
Fix root detection bug in symlink script.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 3 May 2015 03:03:16 +0000
(
05:03
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 3 May 2015 03:03:16 +0000
(
05:03
+0200)
symlink.sh
patch
|
blob
|
history
diff --git
a/symlink.sh
b/symlink.sh
index f3399aaffa323615b77e0af1924207d40648e282..c4e540494a8db102f51c3cf97847ed531c5ada2b 100755
(executable)
--- a/
symlink.sh
+++ b/
symlink.sh
@@
-7,7
+7,7
@@
dir_root=~/config/dotfiles_root
for file in `ls $dir`; do
ln -fs $dir/$file ~/.$file
done
-if [ "$(id -u)" -
ne
"0" ]; then
+if [ "$(id -u)" -
eq
"0" ]; then
for file in `ls $dir_root`; do
ln -fs $dir_root/$file ~/.$file
done