Giter VIP home page Giter VIP logo

Comments (7)

praiskup avatar praiskup commented on July 4, 2024 1

Any clues? :/

Thanks for the report. I would bet the build.sh runs the default /bin/bash (shebang), which is the old shell version 3, right?

from container-common-scripts.

bobbydeveaux avatar bobbydeveaux commented on July 4, 2024

@hhorak - dare suppose you have any idea about this?

from container-common-scripts.

bobbydeveaux avatar bobbydeveaux commented on July 4, 2024

#!/bin/bash

^ that is indeed 3.2!

from container-common-scripts.

praiskup avatar praiskup commented on July 4, 2024

make SHELL=/your/path/to/bash could be allowed with:

diff --git a/common.mk b/common.mk
index a3fffce..833b0c2 100644
--- a/common.mk
+++ b/common.mk
@@ -3,11 +3,13 @@
 # If set to '0', images are automatically squashed.  '1' disables
 # squashing.  By default only RHEL containers are squashed.
 
+SHELL := /bin/bash
+
 ifndef common_dir
     common_dir = common
 endif
 
-build = $(common_dir)/build.sh
+build = $(SHELL) $(common_dir)/build.sh
 test = $(common_dir)/test.sh
 tag = $(common_dir)/tag.sh
 clean = $(common_dir)/clean.sh

from container-common-scripts.

bobbydeveaux avatar bobbydeveaux commented on July 4, 2024

I updated the shebang to "#!/usr/bin/env bash -e" - which I believe is more widely compatible, I believe?

That fixed it.. :)

from container-common-scripts.

praiskup avatar praiskup commented on July 4, 2024

The -e is weird, but otherwise such change would sound safe..

from container-common-scripts.

pkubatrh avatar pkubatrh commented on July 4, 2024

@bobbydeveaux Hopefully 44fb885 fixes the error you have been having. Please re-open in case you find any issue with it.

from container-common-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.