From c3e735b6273db2393fa3b587d1f230ee98c8f2b7 Mon Sep 17 00:00:00 2001 From: wancat Date: Mon, 14 Aug 2023 19:51:00 +0800 Subject: [PATCH] fix: unset variable after execution --- server/quests/helloworld/home/.zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/quests/helloworld/home/.zshrc b/server/quests/helloworld/home/.zshrc index eacba97..92044b5 100644 --- a/server/quests/helloworld/home/.zshrc +++ b/server/quests/helloworld/home/.zshrc @@ -30,5 +30,13 @@ precmd() { # Now run your Node.js script with the result as an argument node /usr/local/lib/container/cli.js; rm /tmp/cmd.out /tmp/cmd.error 2>/dev/null + + # Reset variables + unset CMD_START_TIME + unset CMD_END_TIME + unset CMD_EXIT_CODE + unset CMD_OUTPUT_FILE + unset CMD_ERROR_FILE + unset CMD_NAME }