charm-ovn-relay-k8s/rename.sh
Hemanth Nakkina c0edd1efae Add osci yaml
Add project templates and variables to osci.yaml
Add rename script to change built charm name to
charm_build_name defined in osci.yaml

Change-Id: I737badefa19fd8d65def0ab79cadaa63d7d93b5a
2022-09-09 08:58:35 +05:30

14 lines
321 B
Bash
Executable File

#!/bin/bash
charm=$(grep "charm_build_name" osci.yaml | awk '{print $2}')
echo "renaming ${charm}_*.charm to ${charm}.charm"
echo -n "pwd: "
pwd
ls -al
echo "Removing bad downloaded charm maybe?"
if [[ -e "${charm}.charm" ]];
then
rm "${charm}.charm"
fi
echo "Renaming charm here."
mv ${charm}_*.charm ${charm}.charm