Browse Source

make build variable optional

pull/2/head
Nicolas Massé 9 years ago
parent
commit
c2913a2512
  1. 5
      .s2i/bin/assemble

5
.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

Loading…
Cancel
Save