From bc9d82e01b56ee4ebfaf7babb5193d99a1a668a2 Mon Sep 17 00:00:00 2001 From: Dilyn Corner Date: Tue, 8 Oct 2024 16:21:25 -0400 Subject: [PATCH] snapcraft.yaml: identical files should not fail cp cp will bail just in case source=dest, and in that case we do not care if dest is overwritten. Signed-off-by: Dilyn Corner --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index cd42cc14d..ffaa37e05 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -48,7 +48,7 @@ parts: craftctl default npm install --only-dev npm run-script build - cp -av build $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/ + cp -avf build $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/ # fix wrongly hardcoded /usr/bin/python interpreter in pagekite if [ -e $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/pagekite.py ]; then sed -i 's;#!.*;#! /usr/bin/env python3;' \