diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-14 20:09:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-14 20:09:02 +0200 |
commit | 33209d1b19689ace6a3def68e995c81bdfcc9a40 (patch) | |
tree | 2dfcb15002ba17df67793db22affe5878b1b95ca /package/pkgmaker | |
parent | ba4b6056da30ddb19809b72309a009a1c84a7656 (diff) |
older mksh versions seems to have a problem with function keyword
Diffstat (limited to 'package/pkgmaker')
-rw-r--r-- | package/pkgmaker | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/pkgmaker b/package/pkgmaker index f4d8355ef..225d47f47 100644 --- a/package/pkgmaker +++ b/package/pkgmaker @@ -303,21 +303,21 @@ EOF done # return good if given file exists and is non-empty -function non_empty_file() { +non_empty_file() { [[ -f "$1" ]] || return 1 [[ -n "$(cat "$1")" ]] || return 1 return 0 } # print the verbose section name for a given section tag -function lookup_section_string() { +lookup_section_string() { str="$(grep ^$1\ sections.lst | cut -d ' ' -f '2-')" [[ -n $str ]] && { echo $str; return; } echo $1 } # print the first prompt's first word's value in a given Config.in file -function get_first_prompt() { +get_first_prompt() { prompt="$(grep -m 1 "prompt " $1 | sed -n 's/.*"\([^ \.]*\)[ \.].*"/\1/p')" [[ -n $prompt ]] && echo $prompt } |