Updated Export configuration password to env variable and only remember it for some time (markdown)

Andrei Shevchuk 2021-02-23 01:01:54 +00:00
parent e3924c1fdb
commit d9b2f1ca6f

@ -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 ) & )