spcd_os_rm

This commit is contained in:
Marc Beninca 2024-08-25 19:59:27 +02:00
parent 3383976437
commit cce51abc00
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -705,7 +705,7 @@ spcd_update_ca_certificates() {
spcd_set_https_verification_on() { spcd_set_https_verification_on() {
spcd_step "Set HTTPS verification on" spcd_step "Set HTTPS verification on"
spcd_rm "${SPCD_PM_HTTPS_PATH}" spcd_os_rm "${SPCD_PM_HTTPS_PATH}"
} }
spcd_upgrade_packages() { spcd_upgrade_packages() {
@ -930,11 +930,11 @@ spcd_os_mkdir() {
fi fi
} }
spcd_rm() { spcd_os_rm() {
spcd_rm__path="${1}" spcd_os_rm__path="${1}"
if [ -e "${spcd_rm__path}" ]; then if [ -e "${spcd_os_rm__path}" ]; then
echo "${spcd_rm__path}" echo "${spcd_os_rm__path}"
rm -r "${spcd_rm__path}" || exit rm -r "${spcd_os_rm__path}" || exit
fi fi
} }