+
+ # one program so far does not work with a symlink,
+ # so we have to use a bind mount
+ bdir=$dir/binds
+ if [[ -e $bdir && $USER == ian ]]; then
+ for f in $(find $bdir -type f); do
+ dst=/home/ian/${f##$bdir}
+ if [[ ! -e $dst || $(stat -c%i $f $dst |uniq -u) ]]; then
+ if mountpoint -q $dst; then
+ s umount $dst
+ fi
+ # note: in future, may need to mkdir also
+ [[ -e $dst ]] || touch $dst
+ s mount --bind $f $dst
+ fi
+ done
+ fi
+