File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1273,7 +1273,7 @@ _hs_gen_home() {
1273
1273
[ -d " $fn " ] && str+=" $fn " $' \n '
1274
1274
else
1275
1275
# str="$({ find "${HOMEDIR:-/home}" -mindepth 1 -maxdepth 1 -type d; awk -F':' '{print $6}' </etc/passwd 2>/dev/null | while read -r d; do [ -d "$d" ] && echo "$d"; done; [ -d /var/www ] && echo "/var/www"; } | sort -u)"
1276
- str=" $( { find " ${ROOTFS}${HOMEDIR:-/ home} " -mindepth 1 -maxdepth 1 -type d 2> /dev/null; cat " ${ROOTFS} /etc/passwd" 2> /dev/null | awk -F' :' ' {print $6}' 2> /dev/null | while read -r d; do [ ! -d " ${ROOTFS} $d " ] && continue ; [[ " $d " == " /" || " $d " == " /bin" || " $d " == " /sbin" ]] && continue ; echo " ${ROOTFS} $d " ; done ; } | sort -u) "
1276
+ str=" $( { find " ${ROOTFS}${HOMEDIR:-/ home} " -mindepth 1 -maxdepth 1 -type d 2> /dev/null; cat " ${ROOTFS} /etc/passwd" 2> /dev/null | awk -F' :' ' {print $6}' 2> /dev/null | while read -r d; do [ ! -d " ${ROOTFS} $d " ] && continue ; [[ " $d " == " /" || " $d " == " /bin" || " $d " == " /sbin" ]] && continue ; echo " ${ROOTFS}${d %/ } " ; done ; } | sort -u) "
1277
1277
[ -d " ${ROOTFS} /var/www" ] && [[ " $str " != * " /var/www" * ]] && str+=" ${ROOTFS} /var/www" $' \n '
1278
1278
fi
1279
1279
You can’t perform that action at this time.
0 commit comments