charm-ceph-dashboard/rename.sh
Aurelien Lourot 011733c97f Migrate to charmhub
Change-Id: I8b998968aecf8f6d2485d4f5153211ceeac81b27
2022-02-08 15:05:00 +01: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