File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1919 echo " ✅ macOS system detected."
2020fi
2121
22- # Download and install the Apple 'container' tool
23- echo " Downloading Apple 'container' tool..."
24- curl -Lo container-installer.pkg https://github.com/apple/container/releases/download/0.1.0/container-0.1.0-installer-signed.pkg
22+ # Check if container is installed and display its version
23+ if command -v container & > /dev/null
24+ then
25+ echo " Apple 'container' tool detected. Current version:"
26+ container --version
27+ else
28+ echo " Apple 'container' tool not detected. Proceeding with installation..."
29+
30+ # Download and install the Apple 'container' tool
31+ echo " Downloading Apple 'container' tool..."
32+ curl -Lo container-installer.pkg https://github.com/apple/container/releases/download/0.2.0/container-0.2.0-installer-signed.pkg
2533
26- echo " Installing Apple 'container' tool..."
27- sudo installer -pkg container-installer.pkg -target /
34+ echo " Installing Apple 'container' tool..."
35+ sudo installer -pkg container-installer.pkg -target /
36+ fi
2837
2938echo " Setting up local network domain..."
3039
You can’t perform that action at this time.
0 commit comments