diff options
Diffstat (limited to 'standalone/linux/skel/runshell')
-rwxr-xr-x | standalone/linux/skel/runshell | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/standalone/linux/skel/runshell b/standalone/linux/skel/runshell index b540c983b..68a462266 100755 --- a/standalone/linux/skel/runshell +++ b/standalone/linux/skel/runshell @@ -64,12 +64,14 @@ fi # And this shim is used by the webapp when adding a remote ssh server. if [ ! -e "$HOME/.ssh/git-annex-wrapper" ]; then mkdir "$HOME/.ssh" >/dev/null 2>&1 || true - ( - echo "#!/bin/sh" - echo "set -e" - echo "exec '$base/runshell' \"\$@\"" - ) > "$HOME/.ssh/git-annex-wrapper" - chmod +x "$HOME/.ssh/git-annex-wrapper" + if [ -e "$HOME/.ssh" ]; then + ( + echo "#!/bin/sh" + echo "set -e" + echo "exec '$base/runshell' \"\$@\"" + ) > "$HOME/.ssh/git-annex-wrapper" + chmod +x "$HOME/.ssh/git-annex-wrapper" + fi fi # Put our binaries first, to avoid issues with out of date or incompatable |