From b8bc73e7114d06a8359b38a6023c3830389d4d50 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 9 Oct 2022 11:01:21 -0700 Subject: [PATCH] Snapcraft: fix syntax --- snap/snapcraft.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 2680f772..b6cd0571 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -167,13 +167,13 @@ parts: sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare sed -i 's|'$SNAPCRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $SNAPCRAFT_PART_INSTALL/bin/onionshare-cli # for some reason, snapcraft.io's build system isn't copying onionshare and onionshare_cli folders into install - if [[] ! -d "$SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare" ]]; do + if [[ ! -d "$SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare" ]]; then ls -l . - cp -r -n . $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare + cp -r . $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare fi - if [[] ! -d "$SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare_cli" ]]; do + if [[ ! -d "$SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare_cli" ]]; then ls -l ../../onionshare-cli/build - cp -r -n ../../onionshare-cli/build $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare_cli + cp -r ../../onionshare-cli/build $SNAPCRAFT_PART_INSTALL/lib/python3.8/site-packages/onionshare_cli fi after: [onionshare-cli]