From: Jan Kratochvil Date: Tue, 5 Apr 2011 18:06:26 +0000 (+0200) Subject: --n-class X -> --X X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=19602d129d2fbca51d0dae8afecc85f0cc5f48d4 --n-class X -> --X --- diff --git a/bin/n b/bin/n index 6433d68..efefd5c 100755 --- a/bin/n +++ b/bin/n @@ -4,9 +4,9 @@ if which ionice &>/dev/null;then else IONICE="" fi -if [ "$1" = --n-class ];then - CGPARAM="$2" - shift 2 +if [ "${1#--}" != "$1" ];then + CGPARAM="${1#--}" + shift else CGPARAM="n" fi