File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,25 @@ if ! command -v jq > /dev/null 2>&1; then
3737 export PATH=" /tmp:${PATH} "
3838fi
3939
40+ # Install unzip if not already available
41+ if ! command -v unzip > /dev/null 2>&1 ; then
42+ echo " Installing unzip..."
43+ if command -v apt-get > /dev/null 2>&1 ; then
44+ apt-get update -qq && apt-get install -y -qq unzip > /dev/null 2>&1 || {
45+ echo " Warning: Failed to install unzip. Skipping Docker Hub authentication." >&2
46+ exit 0
47+ }
48+ elif command -v apk > /dev/null 2>&1 ; then
49+ apk add --no-cache unzip > /dev/null 2>&1 || {
50+ echo " Warning: Failed to install unzip. Skipping Docker Hub authentication." >&2
51+ exit 0
52+ }
53+ else
54+ echo " Warning: No package manager found to install unzip. Skipping Docker Hub authentication." >&2
55+ exit 0
56+ fi
57+ fi
58+
4059# Install Vault if not already available
4160vault_cmd=" vault"
4261if ! command -v vault > /dev/null 2>&1 ; then
You can’t perform that action at this time.
0 commit comments