mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
Updated Export configuration password to env variable and only remember it for some time (markdown)
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 ) & )
|
||||
|
Loading…
Reference in New Issue
Block a user