Skip to content

Commit

Permalink
snapcraft.yaml: identical files should not fail cp
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dilyn-corner authored and benfrancis committed Oct 9, 2024
1 parent f1b7a92 commit bc9d82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;' \
Expand Down

0 comments on commit bc9d82e

Please sign in to comment.