Sha256: a5eaa8bd481944eef5d6d1052a31ac5b9a35cd959eda0787b680c6c23c254ac6

Contents?: true

Size: 670 Bytes

Versions: 6

Compression:

Stored size: 670 Bytes

Contents

#!/bin/bash

#To update the product_default_version
#cd omnibus-software/config/software
#sh update_prod_default_version.sh 

Prod_file="prod_default_version.json"
cd ../../config/software/
rm -rf $Prod_file 
echo "{" >> $Prod_file 
for FILE in *.rb; do 
	prod=$(echo "$FILE" |cut -d "." -f1);
        dv=$( grep "default_version" $FILE|  cut -d " " -f2) 
	if [ "$prod" = "cacerts" ]; then
		echo "\"$prod\": $dv ,">> $Prod_file; 
	else
		if echo $dv | grep -qE '[0-9]\.[0-9]+' ;then
		echo "\"$prod\": $dv ,">> $Prod_file; 
        	fi
	fi
done;
$(printf '%s\n' '$' 's/.$//' wq | ex $Prod_file)
echo "}" >> $Prod_file 
mv $Prod_file ../../.expeditor/Version_Inspector/

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omnibus-software-23.7.295 .expeditor/Version_inspector/update_prod_default_version.sh
omnibus-software-23.6.292 .expeditor/Version_inspector/update_prod_default_version.sh
omnibus-software-23.6.291 .expeditor/Version_inspector/update_prod_default_version.sh
omnibus-software-23.2.283 .expeditor/Version_inspector/update_prod_default_version.sh
omnibus-software-23.2.281 .expeditor/Version_inspector/update_prod_default_version.sh
omnibus-software-22.11.239 .expeditor/Version_inspector/update_prod_default_version.sh