Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit ce31d4c

Browse files
committed
add fetch option to return early if already run
1 parent 4cf0be1 commit ce31d4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/op-ssh-fetch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
dirname="$(dirname "$(realpath $0)")"
44
source "$dirname/../common.sh"
55

6+
OPTIND=1
7+
while getopts "hn" opt; do
8+
case "$opt" in
9+
n)
10+
if [ -f "$temp_storage_root/ssh_config" ]; then
11+
exit 0
12+
fi
13+
;;
14+
esac
15+
done
16+
617
op_signin $@
718

819
# Get all the items we care about

0 commit comments

Comments
 (0)