Skip to content

Commit

Permalink
docker: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Jul 23, 2023
1 parent 6ed06f3 commit ee74621
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ echo "--- unpacking bases for snapcraft/$RISK ---"
# and unpack them in the proper place.
BASES="core core18 core20 core22"
for base in $BASES; do
curl -L $(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/$base" | jq ".download_url" -r) --output $base.snap
mkdir -p /snap/$base
unsquashfs -d /snap/$base/current $base.snap
curl -L "$(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/$base" | jq ".download_url" -r)" --output "$base.snap"
mkdir -p "/snap/$base"
unsquashfs -d "/snap/$base/current" "$base.snap"
done


echo "--- unpacking snapcraft/$RISK ---"

# Grab the snapcraft snap from the $RISK channel and unpack it in the proper
# place.
curl -L $(curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/snapcraft?channel='$RISK | jq '.download_url' -r) --output snapcraft.snap
curl -L "$(curl -H "X-Ubuntu-Series: 16" "https://api.snapcraft.io/api/v1/snaps/details/snapcraft?channel=$RISK" | jq ".download_url" -r)" --output snapcraft.snap
mkdir -p /snap/snapcraft
unsquashfs -d /snap/snapcraft/current snapcraft.snap

0 comments on commit ee74621

Please sign in to comment.