sunbeam-charms/charms/gnocchi-k8s/rename.sh
Hemanth Nakkina 7d705444a5 Add gnocchi charm and tests
Add gnocchi charm
Add charmcraft and metadata files
Add relevant tox files
Add unit tests and zaza tests
2023-08-08 16:00:12 +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