diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/etc-update | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/etc-update b/bin/etc-update index 2369f04f4..42518adc6 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -149,7 +149,7 @@ sel_file() { elif [ "${DELETE_ALL}" == "yes" ]; then input=0 else - clear + [[ $CLEAR_TERM == yes ]] && clear if [[ ${mode} == 0 ]] ; then echo "The following is the list of files which need updating, each configuration file is followed by a list of possible replacement files." @@ -317,7 +317,7 @@ do_cfg() { elif [[ "${DELETE_ALL}" == "yes" ]] && ! user_special "${ofile}"; then my_input=2 else - clear + [[ $CLEAR_TERM == yes ]] && clear if [ "${using_editor}" == 0 ]; then ( echo "Showing differences between ${ofile} and ${file}" @@ -421,7 +421,7 @@ Please select from the menu above (-1 to exit, losing this merge): " return 255 ;; 2) - clear + [[ $CLEAR_TERM == yes ]] && clear if [ "${using_editor}" == 0 ]; then ( echo "Showing differences between ${ofile} and ${mfile}" @@ -555,6 +555,7 @@ chown ${UID:-0}:${GID:-0} "${TMP}" || die "failed to set ownership on temp dir" #CONFIG_PROTECT_MASK=$(/usr/lib/portage/bin/portageq envvar CONFIG_PROTECT_MASK) # load etc-config's configuration +CLEAR_TERM=$(get_config clear_term) EU_AUTOMERGE=$(get_config eu_automerge) rm_opts=$(get_config rm_opts) mv_opts=$(get_config mv_opts) |