mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
safety is cool actually
This commit is contained in:
parent
23e5dc8270
commit
a49f61028a
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
gpg --card-status &> /dev/null;
|
||||
if [ $? -eq 0 ] || [ $? -eq 2 ]; then
|
||||
if gpg --card-status &> /dev/null; then
|
||||
user=" $(gpg --card-status | grep 'Login data' | awk '{print $NF}')";
|
||||
else
|
||||
user=" Disconnected"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue