diff --git a/utils/aa-remove-unknown b/utils/aa-remove-unknown index d3bd9144b..5c2b4de2b 100755 --- a/utils/aa-remove-unknown +++ b/utils/aa-remove-unknown @@ -25,8 +25,8 @@ DRY_RUN=0 . $APPARMOR_FUNCTIONS usage() { - local progname="$1" - local rc="$2" + local progname="$0" + local rc="$1" local msg="usage: ${progname} [options] Remove profiles unknown to the system @@ -45,14 +45,14 @@ Options: } if [ "$#" -gt 1 ] ; then - usage "$0" 1 + usage 1 elif [ "$#" -eq 1 ] ; then if [ "$1" = "-h" -o "$1" = "--help" ] ; then - usage "$0" 0 + usage 0 elif [ "$1" = "-n" ] ; then DRY_RUN=1 else - usage "$0" 1 + usage 1 fi fi