comment stripcom() and make the variable name consistent with others

This commit is contained in:
slakmagik 2009-05-25 17:03:37 +00:00
parent c5af8e5f24
commit f3b635a3aa

View File

@ -1457,13 +1457,18 @@ rename_user_queue() {
}
stripcom() {
local _file="$1"
# This function removes comments and blank lines from the file given as
# the argument. It deletes lines beginning with zero or more whitespaces
# and a comment symbol, strips any text after whitespace and a comment
# symbol, and deletes blank or whitespace-only lines.
local FILE="$1"
sed '
/^[ \t]*#/d
s/[ \t][ \t]*#.*//
/^[ \t]*$/d
' $_file
' $FILE
}
save_user_queue() {