From 45662d3c92fcaf741e47c59b36a2625d90d7aa17 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 21 Aug 2023 11:37:50 -0500 Subject: [PATCH 1/1] install.sh: install ssh conditionally, ensure dir --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c20a1b6..9f669d1 100755 --- a/install.sh +++ b/install.sh @@ -123,8 +123,11 @@ if command -v gpg >$devnull 2>&1; then fi # ssh -find ssh -mindepth 1 -maxdepth 1 | while read -r x; do - l ".$x"; done +if command -v ssh >$devnull 2>&1; then + mkdir -pm 700 "$DEST/.ssh" + find ssh -mindepth 1 -maxdepth 1 | while read -r x; do + l ".$x"; done +fi # termux, assume it if android if [ $(uname -o) = 'Android' ]; then -- 2.47.0