summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 20f8d45ce..57e0ebad6 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -6,7 +6,7 @@ while [ $# -gt 0 ]; do
case "$1" in
"--auto") AUTO=1;;
"--version") REQVERSION="$2"; shift;;
- *) COMP="$1";;
+ *) COMP="${1%%/}";;
esac
shift
done