diff --git a/update-dehydrated-repos.sh b/update-dehydrated-repos.sh index 5f0cf6c..cf98678 100755 --- a/update-dehydrated-repos.sh +++ b/update-dehydrated-repos.sh @@ -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