Skip to content

Commit fae49a0

Browse files
kwentinebrandond
authored andcommitted
Remove redundant cleanup function definition
1 parent acf308a commit fae49a0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

bundle/bin/rke2-uninstall.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,6 @@ uninstall_remove_self()
141141
$transactional_update rm -f -- "${INSTALL_RKE2_ROOT}/bin/rke2-uninstall.sh"
142142
}
143143

144-
# Define a cleanup function that triggers on exit
145-
cleanup() {
146-
# Check if last command's exit status was not equal to 0
147-
if [ $? -ne 0 ]; then
148-
echo -e "\e[31mCleanup didn't complete successfully\e[0m"
149-
else
150-
log "Cleanup completed successfully"
151-
fi
152-
}
153-
154144
# Define a cleanup function that triggers on exit
155145
cleanup() {
156146

0 commit comments

Comments
 (0)