From d9b2f1ca6ff9fa96037796a3fe72757e875fc4a3 Mon Sep 17 00:00:00 2001 From: Andrei Shevchuk Date: Tue, 23 Feb 2021 01:01:54 +0000 Subject: [PATCH] Updated Export configuration password to env variable and only remember it for some time (markdown) --- ...ssword-to-env-variable-and-only-remember-it-for-some-time.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Export-configuration-password-to-env-variable-and-only-remember-it-for-some-time.md b/Export-configuration-password-to-env-variable-and-only-remember-it-for-some-time.md index ced1ab7..c785f54 100644 --- a/Export-configuration-password-to-env-variable-and-only-remember-it-for-some-time.md +++ b/Export-configuration-password-to-env-variable-and-only-remember-it-for-some-time.md @@ -11,7 +11,7 @@ echo "Password:" read -s RCLONE_CONFIG_PASS export RCLONE_CONFIG_PASS -if [ -n $RCLONE_PASS_TIMEOUT ]; then +if [ -n "$RCLONE_PASS_TIMEOUT" ]; then pid=$$ trap 'unset RCLONE_CONFIG_PASS' SIGALRM ( ( sleep $RCLONE_PASS_TIMEOUT ; kill -ALRM $pid ) & )