mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: unset variable after execution
This commit is contained in:
1 parent
f08ee333a7
commit
c3e735b627
1 file changed
+8
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user