We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d985d9b commit 68abdc3Copy full SHA for 68abdc3
CHANGES
@@ -1,6 +1,11 @@
1
Nodeenv changelog
2
=================
3
4
+Version [unreleased]
5
+--------------------
6
+
7
+- Added check for how `activate` is called.
8
9
Version 1.3.1
10
-------------
11
- Windows related fix `#207 <https://github.com/ekalinin/nodeenv/pull/207>`_
nodeenv.py
@@ -1342,6 +1342,16 @@ def main():
1342
fi
1343
}
1344
1345
1346
+# Detect calling this file as a script
1347
+case $0 in
1348
+ */bin/activate )
1349
+ echo "Do not call $0 directly. Instead source it with \`source $0\`."
1350
+ exit 1
1351
+ ;;
1352
+esac
1353
1354
1355
# unset irrelevant variables
1356
deactivate_node nondestructive
1357
0 commit comments