grep ^SHARE= "$CONFIG" | while read A ; do
B="$(echo ${A#SHARE=})"
- D="$(realpath "$LOWER$B")"
+ D="$(realpath "$B")"
[ "$D" = "$LOWER" ] && continue
if [ -d "$D" ] ; then
- echo bind mount $D onto $LIVE$D
+ echo bind mount $D onto $LIVE$B
mkdir -p $LIVE$D
- mount --bind $D $LIVE$D
+ mount --bind $D $LIVE$B
fi
done