inst_dir "$target"
inst_symlink "$_file"
else
- [[ -h ${initdir}$_file ]] && _file=$(readlink "${initdir}$_file")
+ [[ -h ${initdir}/$_file ]] && _file=$(readlink "${initdir}/$_file")
# create directory
- mkdir -m 0755 -p "${initdir}$_file" || return 1
+ [[ -e "${initdir}/$_file" ]] || mkdir -m 0755 -p "${initdir}/$_file" || return 1
if [[ -d "$_file" ]]; then
- chmod --reference="$_file" "${initdir}$_file"
- chmod u+w "${initdir}$_file"
+ chmod --reference="$_file" "${initdir}/$_file"
+ chmod u+w "${initdir}/$_file"
fi
fi
done