Unverified Commit b627894a authored by Abrar Shivani's avatar Abrar Shivani Committed by GitHub
Browse files

feat: Add check for version info in container build script (#774)

The build script currently fails on macOS due to an incompatible Bash version. This PR adds a version check to ensure the correct Bash version is being used before proceeding.

Closes GitHub issue: https://github.com/ai-dynamo/dynamo/issues/318
parent 877b2ec3
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
echo "Error: Bash version 4.0 or higher is required. Current version: ${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}"
exit 1
fi
set -e set -e
TAG= TAG=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment