X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Fn;h=efefd5c8f63cc8e98962c9f054e8d4bc35506ecd;hp=6433d687aa42e9072b3ba48c2f52c65e4872f3e1;hb=a4fec27ddb426c9259d4b3f10e741228d3ce3f83;hpb=48335795b0a6c61d4f69ebc75605e0202f9d3313 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