From c2913a25128abd60d6d39c0a9175603e1b3e8b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 7 Jun 2017 15:19:34 +0200 Subject: [PATCH] make build variable optional --- .s2i/bin/assemble | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.s2i/bin/assemble b/.s2i/bin/assemble index 3b443c5..5548d44 100755 --- a/.s2i/bin/assemble +++ b/.s2i/bin/assemble @@ -1,8 +1,9 @@ #!/bin/bash if [ -z "$NPM_PACKAGE_TO_INSTALL" ]; then - echo "Error: NPM_PACKAGE_TO_INSTALL is not defined" - exit 1 + echo "Warning: NPM_PACKAGE_TO_INSTALL is not defined !" + echo "Switching back to the default S2I behavior" + exec "$STI_SCRIPTS_PATH/assemble" fi # Exit on any error