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 #!/bin/bash
if [ -z "$NPM_PACKAGE_TO_INSTALL" ]; then if [ -z "$NPM_PACKAGE_TO_INSTALL" ]; then
echo "Error: NPM_PACKAGE_TO_INSTALL is not defined" echo "Warning: NPM_PACKAGE_TO_INSTALL is not defined !"
exit 1 echo "Switching back to the default S2I behavior"
exec "$STI_SCRIPTS_PATH/assemble"
fi fi
# Exit on any error # Exit on any error

Loading…
Cancel
Save