summaryrefslogtreecommitdiff
path: root/user/encfs/shell.patch
blob: 40876ca9f7a673526a0041c4aa768b6e8f640d59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 4f21701c1aaeb3e5b9822231e011ac3224026a4c Mon Sep 17 00:00:00 2001
From: Daniel Santana <daniel@santana.tech>
Date: Sun, 9 Dec 2018 08:37:12 -0200
Subject: [PATCH] Use /bin/sh as a fallback to SHELL in encfssh (#538)

---
 encfs/encfssh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encfs/encfssh b/encfs/encfssh
index fe7b502e..d9566f7d 100755
--- a/encfs/encfssh
+++ b/encfs/encfssh
@@ -77,7 +77,7 @@ fuse_umount() {
 }
 
 # Honor the SHELL environment variable to select a shell to run
-"$SHELL"; retval=$?
+"${SHELL:-/bin/sh}"; retval=$?
 
 # ensure that this shell isn't itself holding the mounted directory open
 # ...but avoid terminating on failure, *or* causing a shellcheck warning for