Remove manual coloring from strings.

This commit is contained in:
gdrooid 2014-09-09 13:16:10 +02:00
parent b73dfd65d7
commit 55f6a0a927

11
tomb
View File

@ -1643,8 +1643,7 @@ mount_tomb() {
chown ${_uid}:${_gid} ${tombmount} chown ${_uid}:${_gid} ${tombmount}
chmod 0711 ${tombmount} chmod 0711 ${tombmount}
# TODO: Fix string _success "Success opening ::1 tomb file:: on ::2 mount point::" $tombfile $tombmount
_success "Success opening ::1 tomb file:: on $fg_bold[white]::2 mount point::$fg_no_bold[white]" $tombfile $tombmount
# print out when was opened the last time, by whom and where # print out when was opened the last time, by whom and where
{ test -r ${tombmount}/.last } && { { test -r ${tombmount}/.last } && {
@ -1653,9 +1652,8 @@ mount_tomb() {
tombuid="`cat ${tombmount}/.uid`" tombuid="`cat ${tombmount}/.uid`"
tomblast="`cat ${tombmount}/.last`" tomblast="`cat ${tombmount}/.last`"
tombuser=`awk -F: '/:'"$tombuid"':/ {print $1}' /etc/passwd` tombuser=`awk -F: '/:'"$tombuid"':/ {print $1}' /etc/passwd`
# TODO: Fix strings _message "Last visit by ::1 user::(::2 tomb build::) from ::3 tty:: on ::4 host::" $tombuser $tombuid $tombtty $tombhost
_message "Last visit by $fg_bold[white]::1 user::(::2 tomb build::)$fg_no_bold[white] from $fg_bold[white]::3 tty::$fg_no_bold[white] on $fg_bold[white]$tombhost$fg_no_bold[white]" $tombuser $tombuid $tombtty _message "on date ::1 date::" $(date --date @$tomblast +%c)
_message "on date $fg_bold[white]::1 date::$fg_no_bold[white]" $(date --date @$tomblast +%c)
} }
# write down the UID and TTY that opened the tomb # write down the UID and TTY that opened the tomb
rm -f ${tombmount}/.uid rm -f ${tombmount}/.uid
@ -2048,8 +2046,7 @@ search_tombs() {
if [ ${#mounted_tombs} = 0 ]; then if [ ${#mounted_tombs} = 0 ]; then
_failure "I can't see any open tomb, may they all rest in peace."; fi _failure "I can't see any open tomb, may they all rest in peace."; fi
# TODO: Fix string _success "Searching for: ::1::" ${(f)@}
_success "Searching for: $fg_bold[white]::1::$fg_no_bold[white]" ${(f)@}
for t in ${mounted_tombs}; do for t in ${mounted_tombs}; do
_verbose "Checking for index: ::1::" ${t} _verbose "Checking for index: ::1::" ${t}
mapper=`basename ${t[(ws:;:)1]}` mapper=`basename ${t[(ws:;:)1]}`