Skip to content

Commit

Permalink
linode-cli: update script fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
superherointj committed Oct 14, 2021
1 parent 235dccb commit 875bb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/virtualization/linode-cli/update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnugrep gnused jq yq-go

set -eu -o pipefail
set -x -eu -o pipefail

cd $(dirname "${BASH_SOURCE[0]}")

Expand All @@ -21,7 +21,7 @@ VERSION=$(curl -s ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/linode/linode-cli/archive/refs/tags/${VERSION}.tar.gz)

setKV () {
sed -i "s|$1 = \".*\"|$1 = \"$2\"|" ./default.nix
sed -i "s|$1 = \".*\"|$1 = \"${2:-}\"|" ./default.nix
}

setKV specVersion ${SPEC_VERSION}
Expand Down

0 comments on commit 875bb31

Please sign in to comment.