File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ scriptdir="$(cd "$(dirname "${scriptname}")" && pwd)"
99
1010if ! LIMA_HOME=" $HOME /Library/Application Support/rancher-desktop/lima" " ${scriptdir} /../lima/bin/limactl" ls --json | grep ' "name":"0"' | grep -q ' "status":"Running"' ; then
1111 echo " Rancher Desktop is not running. Please start Rancher Desktop to use nerdctl" ;
12+ exit 1
1213else
1314 LIMA_HOME=" $HOME /Library/Application Support/rancher-desktop/lima" " ${scriptdir} /../lima/bin/limactl" shell 0 sudo --preserve-env=CONTAINERD_ADDRESS nerdctl " $@ "
1415fi
Original file line number Diff line number Diff line change 1212
1313 if ! LIMA_HOME=" ${limaloc} /lima" " ${scriptdir} /../lima/bin/limactl" ls --json | grep ' "name":"0"' | grep -q ' "status":"Running"' ; then
1414 echo " Rancher Desktop is not running. Please start Rancher Desktop to use nerdctl" ;
15+ exit 1
1516 else
1617 LIMA_HOME=" ${limaloc} /lima" " ${scriptdir} /../lima/bin/limactl" shell 0 sudo --preserve-env=CONTAINERD_ADDRESS nerdctl " $@ "
1718 fi
You can’t perform that action at this time.
0 commit comments