summaryrefslogtreecommitdiff
path: root/.shenv
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-01-05 15:23:29 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-01-05 15:23:29 -0700
commite6cf4e14ff5e8f880e9aacbf32fff6af58405177 (patch)
treeab5bd29299d802582352ccc3998fd13c7eef872f /.shenv
parent96049de886e5a9d5f64bea2f5142ea6d655fc174 (diff)
downloaddotfiles-e6cf4e14ff5e8f880e9aacbf32fff6af58405177.tar.gz
.shenv needs +e
Otherwise it breaks when called by bstraph.sh as set -e gets inherited.
Diffstat (limited to '.shenv')
-rwxr-xr-x.shenv3
1 files changed, 3 insertions, 0 deletions
diff --git a/.shenv b/.shenv
index 358a68d9..a5c7d449 100755
--- a/.shenv
+++ b/.shenv
@@ -3,6 +3,9 @@
# Environment variables for X and all text-mode shells: both bash and
# zsh and scripts run by cron source this. So POSIX only.
+# We have calls to `which` which we expect to fail
+set +e
+
# ---- choose editor depending on what's available
emacsclient=$(which emacsclient 2>/dev/null)