On 08 Jan 2016 05:04, Kevin Zhao wrote: > + if echo ${clst_subarch} | grep -qE ".+le$" just use a pattern match: if [[ ${clst_subarch} == *le ]] > + then > + flags+=( > + -v -T -l -cache-inodes -chrp-boot > + ) -chrp-boot shows up in both, so factor that out into the common setting ? > + flags+=( > + -chrp-boot -netatalk -hfs -probe -map "${clst_target_path}"/boot/map.hfs \ you don't need to use \ with arrays -mike