From 76932345498566c95ca4b30ef683b1969dc8966c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Dec 2020 08:33:37 +0100 Subject: cleanup --- getmock | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'getmock') diff --git a/getmock b/getmock index 8f71008..4ba8653 100755 --- a/getmock +++ b/getmock @@ -267,23 +267,15 @@ if [ $1 = php73 ]; then opt=php73 shift fi -if [ $1 = glpi91 ]; then - opt=glpi91 - shift -fi -if [ $1 = glpi92 ]; then - opt=glpi92 - shift -fi -if [ $1 = glpi93 ]; then - opt=glpi93 +if [[ $1 == glpi* ]]; then + opt=$1 shift fi -if [ $1 = glpi94 ]; then - opt=glpi94 +if [[ $1 == redis* ]]; then + opt=$1 shift fi -if [ $1 = redis50 -o $1 = redis60 -o $1 = composer1 -o $1 = composer2 ]; then +if [[ $1 == composer* ]]; then opt=$1 shift fi -- cgit