Skip to content

Commit 0b712e7

Browse files
committed
only revert to old namespace if is already set
1 parent 7fb259c commit 0b712e7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/core.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ import() {
167167
if ! [[ "$SODA_HOME" == "$SODA_USER_HOME" ]]; then
168168
load_scripts "$SODA_USER_HOME/scripts/$1"
169169
fi
170-
NAMESPACE="$OLD_NAMESPACE"
170+
if [[ -n $OLD_NAMESPACE ]]; then
171+
NAMESPACE="$OLD_NAMESPACE"
172+
fi
171173

172174
return 0
173175
else

0 commit comments

Comments
 (0)