From efbe1efd84608ebf83742178f31837bc503c31bd Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Sep 2014 09:57:32 -0400 Subject: cmd/install: Make root dir's parent dirs as needed --- (limited to 'lib/cmd') diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index 8c41b0f..3d40515 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -97,7 +97,7 @@ cmd_install_main() if [ -d "${chroot}" ]; then error 2 "$(get_msg 'cmd_install_chroot_dir_exists')" "${chroot}" fi - if ! mkdir "${chroot}" || ! mkdir "${chroot}/.prokit"; then + if ! mkdir -p "${chroot}/.prokit"; then error 2 "$(get_msg 'cmd_install_mkdir_chroot_fail')" "${chroot}" fi -- cgit v0.9.1