From 91f86cfb2544705b770ff36c8f54ee91b355bfcd 2016-03-11 14:46:27 From: Jan Wagner Date: 2016-03-11 14:46:27 Subject: [PATCH] fix: custom.d directory error --- diff --git a/rpi2-gen-image.sh b/rpi2-gen-image.sh index 709ab04..59ff79d 100755 --- a/rpi2-gen-image.sh +++ b/rpi2-gen-image.sh @@ -209,9 +209,12 @@ for i in bootstrap.d/*.sh; do . $i done -for i in custom.d/*.sh; do - . $i -done +## Custom bootstrap scripts +if [ -d "custom.d" ]; then + for i in custom.d/*.sh; do + . $i + done +fi # Invoke custom scripts if [ -n "${CHROOT_SCRIPTS}" ]; then