Commit c185db9e authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: don't use GNU sed extension

parent c1fe3a24
...@@ -57,6 +57,7 @@ is_command() ...@@ -57,6 +57,7 @@ is_command()
firstupper() firstupper()
{ {
# FIXME: works with GNU sed only
echo "$*" | sed 's/.*/\u&/' echo "$*" | sed 's/.*/\u&/'
} }
...@@ -311,7 +312,8 @@ normalize_name() ...@@ -311,7 +312,8 @@ normalize_name()
;; ;;
*) *)
#echo "${1// /}" #echo "${1// /}"
firstupper "$1" | sed -e "s/ //g" -e 's|(.*||' #firstupper "$1" | sed -e "s/ //g" -e 's|(.*||'
echo "$1" | sed -e "s/ //g" -e 's|(.*||'
;; ;;
esac esac
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment