1
0
Fork 0

Compare commits

..

No commits in common. "76bdf6dab6bc1748c419a2867c8f52d1300cd0cf" and "ec8e088b3f5c543e54cc1f1c2a30fd76b930e7d6" have entirely different histories.

3 changed files with 2 additions and 22 deletions

View file

@ -1,20 +0,0 @@
DESTDIR ?= /usr
BINDIR ?= $(DESTDIR)/bin
VARDIR ?= /var/lib/containerctl
GENERATEDIR ?= $(VARDIR)/generate
CONFIGDIR ?= $(VARDIR)/configs
CONTAINERDIR ?= $(VARDIR)/containers
install:
mkdir -p \
$(PREFIX)/$(GENERATEDIR) \
$(PREFIX)/$(CONFIGDIR) \
$(PREFIX)/$(CONTAINERDIR) \
$(PREFIX)/$(BINDIR)
install -m755 containerctl $(PREFIX)/$(BINDIR)
cp -t $(PREFIX)/$(GENERATEDIR) \
generate/container.py \
generate/log.py \
generate/generate.py
.PHONY: install

View file

@ -1,6 +1,6 @@
version = 1
[[annotations]]
path = [".gitignore", "example.container", "ruff.toml", "Makefile"]
path = [".gitignore", "example.container", "ruff.toml"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 Enno Tensing <tenno+containerctl@suij.in>"
SPDX-License-Identifier = "CC0-1.0"

View file

@ -179,7 +179,7 @@ class Environment:
cmd = f"# Create env-file {self.file}\n"
for var in self.variables:
escaped_var = var.replace("'", "%b")
cmd += f"printf '{escaped_var}\\n' \"'\" \"'\">> '{self.file}'\n"
cmd += f"printf '{escaped_var}\\n' \"'\" >> '{self.file}'\n"
return cmd