Skip to content

Commit 5702932

Browse files
committed
replaced if stanza with case. better readability
1 parent d037c35 commit 5702932

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

gen_cloud_template.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,14 @@ EOF
386386
fi
387387

388388
# OS Specific file copy
389-
if [ "${OSTYPE}" == "debian" ];then
389+
case ${OSTYPE} in
390+
debian)
390391
as_root install -Dm 644 "${SCRIPT_BASE_DIR}/debian-syslinux.cfg" "${mount_point}/root/syslinux.cfg"
391-
elif [ "${OSTYPE}" == "redhat" ];then
392+
;;
393+
redhat)
392394
warn "Not RH specific code, yet..."
393-
fi
395+
;;
396+
esac
394397

395398
# initialize with script
396399
submsg "Running Initalization Script..."

0 commit comments

Comments
 (0)