update-dehydrated-repos.sh: hack to prevent echoing password and storing it to bash_history.

This commit is contained in:
Christoph 2019-05-14 18:44:54 +02:00
parent 9c9d849faf
commit 501aa95c75

View File

@ -224,6 +224,8 @@ fi
if [[ ! -d "$REPOSITORY_PATH" ]] ; then
info "Repository '$REPOSITORY_NAME' is not present."
read -s dummy1
read -s dummy2
clean_up 0
fi
@ -244,6 +246,17 @@ fi
git pull 2> "$log_file"
if [ -s "$log_file" ]; then
info "$(cat "$log_file")"
else
blank_line
echononl "Updating repository \033[1m$REPOSITORY_NAME\033[m"
echo_done
fi
clean_up 0
blank_line
echononl "Updating repository \033[1m$REPOSITORY_NAME\033[m"
if [ -s "$log_file" ]; then