Skip to content

Commit

Permalink
prod: removed executable permission from setenv and added an error me…
Browse files Browse the repository at this point in the history
…ssage if it is executed directly

setenv is intended to be sourced and not executed directly
  • Loading branch information
rhornig committed Jan 13, 2025
1 parent 1472ee5 commit 760d54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setenv
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/sh
#!/usr/bin/env -S sh -c "echo >&2 \"Error: You are running this script instead of sourcing it. Make sure to use it as 'source setenv' or '. setenv', otherwise its settings won't take effect.\"; exit 1"

case "$-" in
*i*) ;;
Expand Down

0 comments on commit 760d54c

Please sign in to comment.