]> git.sev.monster Git - dotfiles.git/commitdiff
install.sh: install ssh conditionally, ensure dir
authorsev <git@sev.monster>
Mon, 21 Aug 2023 16:37:50 +0000 (11:37 -0500)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:40 +0000 (16:27 -0500)
install.sh

index c20a1b687a2f23831908b35710b49bf408465b6d..9f669d1a61e29981682f8e5fc141fce1a158518b 100755 (executable)
@@ -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
This page took 0.033973 seconds and 4 git commands to generate.