sunbeam-charms/ops-sunbeam/shared_code/sunbeam_charm/{{cookiecutter.service_name}}/rename.sh
Hemanth Nakkina e924fa20db Cookiecutter changes
Changes in cookiecutter code.

Change-Id: I14963ac168834130f4072879fd165772fc295fd2
2023-08-07 10:54:00 +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