[projects/cleanbuild] docker: strip .spec suffix from package name if present

glen glen at pld-linux.org
Sat Oct 28 20:23:35 CEST 2017


commit ec2abbf0079c667c33964a24c5f8f8d295d6175b
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Oct 28 21:22:40 2017 +0300

    docker: strip .spec suffix from package name if present

 cleanbuild-docker.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/cleanbuild-docker.sh b/cleanbuild-docker.sh
index 854140e..2193e2d 100755
--- a/cleanbuild-docker.sh
+++ b/cleanbuild-docker.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-package=$1
+package=${1%.spec}
 
 test -n "$package" || exit 1
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/d35930ef370c60180348aae3c601b6712ec32a44



More information about the pld-cvs-commit mailing list