diff options
-rwxr-xr-x | acid/cyche-build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/acid/cyche-build b/acid/cyche-build index 586e230..4239340 100755 --- a/acid/cyche-build +++ b/acid/cyche-build @@ -25,9 +25,11 @@ cd "/services/$1" if [ "$3" == "--self" ]; then + prev=$(cat '.git/previous_slug') + [ -n "$prev" ] && prev="--project-name $prev" + slug=$(echo -n "$1-"; tr -dc a-z </dev/urandom | head -c 12) - prev="--project-name '$(cat '.git/previous_slug')'" - next="--project-name '$slug'" + next="--project-name $slug" fi docker compose $next pull |