charm-neutron-dynamic-routing/rename.sh
Alex Kavanagh 13a994f78d Migrate charm charmcraft and for the yoga track
Change-Id: I455d079ffb7ca081d8a1b54d1afcc28d5b8e1751
2022-04-22 12:52:01 -04:00

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