update-dehydrated-repos.sh: hack to prevent echoing password and storing it to bash_history.
This commit is contained in:
parent
9c9d849faf
commit
501aa95c75
@ -224,6 +224,8 @@ fi
|
|||||||
|
|
||||||
if [[ ! -d "$REPOSITORY_PATH" ]] ; then
|
if [[ ! -d "$REPOSITORY_PATH" ]] ; then
|
||||||
info "Repository '$REPOSITORY_NAME' is not present."
|
info "Repository '$REPOSITORY_NAME' is not present."
|
||||||
|
read -s dummy1
|
||||||
|
read -s dummy2
|
||||||
clean_up 0
|
clean_up 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -244,6 +246,17 @@ fi
|
|||||||
|
|
||||||
git pull 2> "$log_file"
|
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
|
blank_line
|
||||||
echononl "Updating repository \033[1m$REPOSITORY_NAME\033[m"
|
echononl "Updating repository \033[1m$REPOSITORY_NAME\033[m"
|
||||||
if [ -s "$log_file" ]; then
|
if [ -s "$log_file" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user