charm-ceph-iscsi/rename.sh
Aurelien Lourot dc2171c0b2 Migrate to charmhub
Change-Id: I2caffbca2b6a1a6661831c6771fe4b7d45deddd3
2022-03-16 13:25:35 +00: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