aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/tools
diff options
context:
space:
mode:
Diffstat (limited to 'hyperterm/tools')
-rw-r--r--hyperterm/tools/ssh-agent.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/hyperterm/tools/ssh-agent.sh b/hyperterm/tools/ssh-agent.sh
index 4c24ba5..e121722 100644
--- a/hyperterm/tools/ssh-agent.sh
+++ b/hyperterm/tools/ssh-agent.sh
@@ -14,7 +14,11 @@ function sshagent_start {
chmod 600 "${SSH_ENV}"
# shellcheck source=/dev/null
source "${SSH_ENV}" > /dev/null
- ssh-add -t 5d
+
+ # Set the default time to 5 days if not provided
+ local days="${1:-5d}"
+
+ ssh-add -t "$days"
printf '\e[1;36m%s\e[m\n' "succeeded"
}