|
@@ -21,7 +21,8 @@ debug() {
|
21
|
21
|
local toes="${vn%%$heel}" # all but last char
|
22
|
22
|
if test "$heel" == "@";
|
23
|
23
|
then
|
24
|
|
- # FIXME: review+fix the eval (even at cost of dropping the feature)
|
|
24
|
+ # FIXME: review+fix the eval (even at cost of
|
|
25
|
+ # dropping the feature)
|
25
|
26
|
local vars=$(eval "echo \"\${!$toes$heel}\"")
|
26
|
27
|
debug -v $(tr " " ":" <<<"$vars")
|
27
|
28
|
else
|
|
@@ -73,7 +74,7 @@ die() {
|
73
|
74
|
|
74
|
75
|
echo_hr() {
|
75
|
76
|
#
|
76
|
|
- # Echo a horizontal ruler out of char "$1" all across terminal.
|
|
77
|
+ # A horizontal ruler out of char "$1" all across terminal.
|
77
|
78
|
#
|
78
|
79
|
test 0$COLUMNS -gt 0 || return
|
79
|
80
|
local char="$1"
|
|
@@ -86,7 +87,8 @@ mute_known() {
|
86
|
87
|
#
|
87
|
88
|
# Mute known messages
|
88
|
89
|
#
|
89
|
|
- # For those yums and rpms that don't know theit manners. Use with care!
|
|
90
|
+ # For those yums and rpms that don't know theit manners.
|
|
91
|
+ # Use with care!
|
90
|
92
|
#
|
91
|
93
|
grep -vxf <(iniread -s mute -k $1 mute.ini)
|
92
|
94
|
}
|
|
@@ -138,7 +140,8 @@ append_if_missing() {
|
138
|
140
|
#
|
139
|
141
|
# Append line to the file but only if it's not already there.
|
140
|
142
|
#
|
141
|
|
- # Handy for your fstabs, or whatever line-based confs Handy for your fstabs, or whatever line-based confs
|
|
143
|
+ # Handy for your fstabs, or whatever line-based confs Handy
|
|
144
|
+ # for your fstabs, or whatever line-based confs
|
142
|
145
|
#
|
143
|
146
|
local line=$1
|
144
|
147
|
local file=$2
|