mirror of
https://github.com/nox-project/nox-framework.git
synced 2026-06-08 16:07:17 +00:00
12 lines
331 B
Bash
Executable File
12 lines
331 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
if [ "$1" = "purge" ]; then
|
|
rm -rf /opt/nox-cli
|
|
rm -rf /root/.nox /root/.config/nox-cli
|
|
# Also clean for the invoking user if SUDO_USER is set
|
|
if [ -n "$SUDO_USER" ]; then
|
|
UHOME=$(getent passwd "$SUDO_USER" | cut -d: -f6)
|
|
rm -rf "${UHOME}/.nox" "${UHOME}/.config/nox-cli"
|
|
fi
|
|
fi
|