Selaa lähdekoodia

Follow symlinks when looking for dist and user paths

Alois Mahdal 10 vuotta sitten
vanhempi
commit
3618dfe3f2
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      src/bin/saturnin.skel

+ 2
- 2
src/bin/saturnin.skel Näytä tiedosto

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"