Skip to content

Commit

Permalink
zero-system: check the path correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroChaos- committed Oct 21, 2024
1 parent 487e07e commit 4b7b54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pentoo/zero-system/files/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bindkey "\eOF" end-of-line

if [ "${USER}" != "root" ]; then
card="unknown"
if [ ! -r ~/.ssh/id_ed25519_sk_green ] && [ ! -r id_ed25519_sk_rk_yk5cgreen ]; then
if [ ! -r ~/.ssh/id_ed25519_sk_green ] && [ ! -r ~/.ssh/id_ed25519_sk_rk_yk5cgreen ]; then
if lsusb -d 1050:0407 > /dev/null 2>&1; then
if [ -x "$(command -v ykinfo)" ] && [ "$(ykinfo -s -q)" = "20489729" ]; then
card="green"
Expand All @@ -74,7 +74,7 @@ if [ "${USER}" != "root" ]; then
printf "This system is missing your yk5cgreen primary key file\n"
fi
fi
if [ ! -r ~/.ssh/id_ed25519_sk_red ] && [ ! -r id_ed25519_sk_rk_yk5cred ]; then
if [ ! -r ~/.ssh/id_ed25519_sk_red ] && [ ! -r ~/.ssh/id_ed25519_sk_rk_yk5cred ]; then
if lsusb -d 1050:0407 > /dev/null 2>&1; then
if [ "${card}" = "unknown" ] && [ -x "$(command -v ykinfo)" ] && [ "$(ykinfo -s -q)" = "20489728" ]; then
card="red"
Expand Down

0 comments on commit 4b7b54b

Please sign in to comment.