Skip to content

Commit 39d27a7

Browse files
committed
remove nerdctl only when it is a symlink to nerdctl.lima
Signed-off-by: KOSHIKAWA Kenichi <[email protected]>
1 parent 5aabbf6 commit 39d27a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ uninstall:
6767
"$(DEST)/bin/limactl" \
6868
"$(DEST)/bin/nerdctl.lima" \
6969
"$(DEST)/share/lima" "$(DEST)/share/doc/lima"
70-
# TODO: remove $(DEST)/bin/nerdctl only when it is a symlink to nerdctl.lima
70+
if [ "$$(readlink "$(DEST)/bin/nerdctl")" = "nerdctl.lima" ]; then rm "$(DEST)/bin/nerdctl"; fi
7171

7272
.PHONY: lint
7373
lint:

0 commit comments

Comments
 (0)