mirror of
https://github.com/rclone/rclone.git
synced 2025-08-13 15:37:26 +02:00
Updated Export configuration password to env variable and only remember it for some time (markdown)
@ -11,7 +11,7 @@ echo "Password:"
|
|||||||
read -s RCLONE_CONFIG_PASS
|
read -s RCLONE_CONFIG_PASS
|
||||||
export RCLONE_CONFIG_PASS
|
export RCLONE_CONFIG_PASS
|
||||||
|
|
||||||
if [ -n $RCLONE_PASS_TIMEOUT ]; then
|
if [ -n "$RCLONE_PASS_TIMEOUT" ]; then
|
||||||
pid=$$
|
pid=$$
|
||||||
trap 'unset RCLONE_CONFIG_PASS' SIGALRM
|
trap 'unset RCLONE_CONFIG_PASS' SIGALRM
|
||||||
( ( sleep $RCLONE_PASS_TIMEOUT ; kill -ALRM $pid ) & )
|
( ( sleep $RCLONE_PASS_TIMEOUT ; kill -ALRM $pid ) & )
|
||||||
|
Reference in New Issue
Block a user