summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup3
1 files changed, 1 insertions, 2 deletions
diff --git a/setup b/setup
index d018c9814..a1702f991 100755
--- a/setup
+++ b/setup
@@ -15,8 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-
-if [ "$(basename -- "$0")" = "setup" ]; then
+if [ -z "$ZSH_NAME" ] && [ "$(basename -- "$0")" = "setup" ]; then
echo The script must be sourced, not executed
exit 1
fi