diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -11,7 +11,7 @@ VCS_UPDATE="pull" VCS_UPDATE_OPTIONS="--update" CL_OPTIONS="-q" info=$'\e[0;36m' -error=$'\e[1;31m' +error=$'\e[0;31m' reset=$'\e[0m' info () { @@ -27,6 +27,13 @@ die () { exit 100 } +check_sed () { + QUUX=$(echo foox | sed -r 's/^fo{2}(.)$/quu\1/') + if ([ ! $QUUX = 'quux' ]) { + warn "sed is not working properly. This may produce unexpected behaviour.\n" + } +} + if ([ -f $HOME/.pkg.conf ]) { . $HOME/.pkg.conf } @@ -164,6 +171,8 @@ pkg_status_wrapper () { } } +check_sed + case "$1" in add) pkg_add "$2" ;; changeroot) pkg_changesrc "$2" ;; |