浏览代码

Follow symlinks when looking for dist and user paths

Alois Mahdal 10 年前
父节点
当前提交
3618dfe3f2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/bin/saturnin.skel

+ 2
- 2
src/bin/saturnin.skel 查看文件

7
     local user="__SATURNIN_CONFIG_USER__"
7
     local user="__SATURNIN_CONFIG_USER__"
8
     local lcal="__SATURNIN_CONFIG_LOCAL__"
8
     local lcal="__SATURNIN_CONFIG_LOCAL__"
9
     local distd="__SATURNIN_SHARE__/ini.d"
9
     local distd="__SATURNIN_SHARE__/ini.d"
10
-    test -d "$userd" && find "$userd" -mindepth 1 -maxdepth 1 -type d
10
+    test -d "$userd" && find -L "$userd" -mindepth 1 -maxdepth 1 -type d
11
     echo "$user"
11
     echo "$user"
12
     echo "$lcal"
12
     echo "$lcal"
13
-    test -d "$distd" && find "$distd" -mindepth 1 -maxdepth 1 -type d
13
+    test -d "$distd" && find -L "$distd" -mindepth 1 -maxdepth 1 -type d
14
 }
14
 }
15
 
15
 
16
 export FFOO_PATH="__SATURNIN_SHARE__/ffoo"
16
 export FFOO_PATH="__SATURNIN_SHARE__/ffoo"