]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
docker: strip .spec suffix from package name if present
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 28 Oct 2017 18:22:40 +0000 (21:22 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 28 Oct 2017 18:22:40 +0000 (21:22 +0300)
cleanbuild-docker.sh

index 854140eab35d81c96c8153aa6be1ade0ef7d25ae..2193e2d0f7fd659ecd0b702003228200e8012d6c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-package=$1
+package=${1%.spec}
 
 test -n "$package" || exit 1
 
This page took 0.066509 seconds and 4 git commands to generate.