|
@ -200,6 +200,21 @@ install_file() { |
|
|
rm -f "$tmpfile" |
|
|
rm -f "$tmpfile" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get_charm_store() { |
|
|
|
|
|
if ! [ -d "$CHARM_PATH" ]; then |
|
|
|
|
|
echo "Creating charm-store in '$CHARM_PATH'." |
|
|
|
|
|
git clone https://git.0k.io/0k-charms.git "$CHARM_PATH" || exit 1 |
|
|
|
|
|
else |
|
|
|
|
|
echo "Updating existing charm-store in '$CHARM_PATH'." |
|
|
|
|
|
cd "$CHARM_PATH" || exit 1 |
|
|
|
|
|
git checkout master && |
|
|
|
|
|
git pull -r || { |
|
|
|
|
|
warn "Could not update charm-store, do you have devs ingoing ?" |
|
|
|
|
|
} |
|
|
|
|
|
fi |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install.linux() { |
|
|
install.linux() { |
|
|
depends docker curl git |
|
|
depends docker curl git |
|
|
|
|
|
|
|
@ -245,17 +260,7 @@ install.linux() { |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
## CHARMS |
|
|
## CHARMS |
|
|
if ! [ -d "$CHARM_PATH" ]; then |
|
|
|
|
|
echo "Creating charm-store in '$CHARM_PATH'." |
|
|
|
|
|
git clone https://git.0k.io/0k-charms.git "$CHARM_PATH" || exit 1 |
|
|
|
|
|
else |
|
|
|
|
|
echo "Updating existing charm-store in '$CHARM_PATH'." |
|
|
|
|
|
cd "$CHARM_PATH" || exit 1 |
|
|
|
|
|
git checkout master && |
|
|
|
|
|
git pull -r || { |
|
|
|
|
|
warn "Could not update charm-store, do you have devs ingoing ?" |
|
|
|
|
|
} |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
get_charm_store || exit 1 |
|
|
|
|
|
|
|
|
## |
|
|
## |
|
|
## YYYvlab: following needs to be discussed further with njeudy |
|
|
## YYYvlab: following needs to be discussed further with njeudy |
|
@ -306,7 +311,8 @@ install.mac() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
install.wsl() { |
|
|
install.wsl() { |
|
|
die "Not implemented yet." |
|
|
|
|
|
|
|
|
CHARM_PATH=~/.charm-store |
|
|
|
|
|
get_charm_store || return 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|