diff options
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/fileutil.inc | 11 | ||||
| -rw-r--r-- | helper/string.inc | 9 |
2 files changed, 9 insertions, 11 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 192758ff..8d61344b 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -1,14 +1,3 @@ -# one time jobs - -# determine packet manager: -if [ ! -z "$(which apt-get 2>/dev/null)" ]; then - PACKET_MANAGER="apt" -elif [ ! -z "$(which zypper 2>/dev/null)" ]; then - PACKET_MANAGER="zypper" -else - perror "Could not determine this platform's packet manager" -fi - # # copy list of files using tar tarcopy () { diff --git a/helper/string.inc b/helper/string.inc index 04809a93..4c6b9778 100644 --- a/helper/string.inc +++ b/helper/string.inc @@ -26,3 +26,12 @@ escape_search() { escape_replace() { sed -e 's/[\/&]/\\&/g' } + +tolower () { + tr '[A-Z]' '[a-z]' +} + +toupper () { + tr '[a-z]' '[A-Z]' +} + |
