Files
common/create.sh
Konstantin Grachev 1063874798
All checks were successful
continuous-integration/drone/push Build is passing
fix: create boilerplate to current dir
2023-03-01 18:42:14 +03:00

16 lines
308 B
Bash
Executable File

#!/usr/bin/env bash
set -exu
if [[ $# -eq 0 ]]
then
echo "No argument supplied"
exit 1
fi
curl --proto '=https' --tlsv1.2 -sSf https://git.grachevko.ru/helm/common/archive/master.tar.gz | \
tar -xz --strip=2 common/starter
find . -type f -exec sed -i "s/<CHARTNAME>/$1/g" {} \;
helm dep update