From a646cf66115f74c5af4755375b5e4ed26d5f6f79 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Sun, 7 Mar 2021 16:05:55 -0800 Subject: [PATCH] Only run xattr if present --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index db4c4cf..71ec0a2 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< - command -v xattr &> /dev/null && xattr -wx prodos.AuxType '00 20' $@ + if command -v xattr &> /dev/null; then xattr -wx prodos.AuxType '00 20' $@; fi $(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o ld65 $(LDFLAGS) -o $@ $<