diff --git a/build/linux/snap/1_build-deps-snapcraft.sh b/build/linux/snap/1_build-deps-snapcraft.sh index 5ce10cece5..54c0e57e66 100644 --- a/build/linux/snap/1_build-deps-snapcraft.sh +++ b/build/linux/snap/1_build-deps-snapcraft.sh @@ -41,6 +41,7 @@ if [ -z "$GITLAB_CI" ] || [ "$1" = '--install-snaps' ]; then curl --progress-bar -L -o ${snap}.snap $(curl --progress-bar -H 'Snap-Device-Series: 16' https://api.snapcraft.io/v2/snaps/info/$snap | jq -r --arg arch "$(dpkg --print-architecture)" '.["channel-map"][] | select(.channel.architecture == $arch and .channel.track == "latest" and .channel.risk == "stable") | .download.url') mkdir -p /snap/$snap/current unsquashfs -d /snap/$snap/current ${snap}.snap + rm -f ${snap}.snap fi done if [ "$1" = '--install-snaps' ]; then exit 0; fi