Skip to content

Commit

Permalink
feat(packages): use openssh
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Apr 22, 2024
1 parent c09e150 commit 64fc2c3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configs/zsh/variables
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ fi
if test -d "/opt/homebrew/opt/ruby/bin"; then
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
fi

# Use homebrew version for security key support
if test -d "/opt/homebrew/opt/openssh/bin"; then
export PATH="/opt/homebrew/opt/openssh/bin:$PATH"
fi
16 changes: 16 additions & 0 deletions packages/openssh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -e

if
! (command -v force_print >/dev/null 2>&1) ||
! (force_print 3 a b >/dev/null 2>&1) ||
test "$(force_print 3 a b)" != "a b";
then
printf "Please run this script through \"install.sh\" instead"
exit 1
fi

has_string 'OpenSSL' ssh -V

use_brew formula 'openssh'

0 comments on commit 64fc2c3

Please sign in to comment.