Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add uninstall_nerdctl_full Script #3972

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

xiaomizhg
Copy link

Script for uninstalling nerdctl_full on Linux

Script for uninstalling nerdctl-full on Linux

Signed-off-by: 今天不回家 <[email protected]>
# Get the installed path
INSTALL_PATH="$1"

# the files and directories to be deleted
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should read the file names and the digests from $PREFIX/share/doc/nerdctl-full/SHA256SUMS.
The digests have to be checked (by default, at least) so as to avoid removing files installed by other tools

fi

# Get the installed path
INSTALL_PATH="$1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be automatically guessed from the path of the script

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file name should be like extras/nerdctl-full-uninstall.sh

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash the commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants