fix(update): don't output locked message when updating images

This commit is contained in:
matt1432 2025-04-25 11:40:25 -04:00
parent 3797bec39d
commit ffd73c0f7b
2 changed files with 2 additions and 2 deletions
apps/update-sources/src
modules/docker

View file

@ -11,7 +11,7 @@ const updateImages = (imagePath: string): string | undefined => {
const out = spawnSync('updateImages', [imagePath], { shell: true }).stdout.toString();
if (!out.startsWith('# Locked')) {
if (out.length > 1) {
return out;
}
};

View file

@ -21,7 +21,7 @@ writeShellApplication {
output="$IMAGE $TAG"
if ! grep "Locked" "$FILE"; then
if ! grep "Locked" "$FILE" &> /dev/null; then
if [[ "$CURRENT_DIGEST" != "$NEW_DIGEST" ]]; then
echo -e " $output:\n $CURRENT_DIGEST\n $NEW_DIGEST\n"
PREFETCH=$(nix-prefetch-docker "$IMAGE" "$TAG")