linode-cli: fix escape on updateScript

This commit is contained in:
superherointj 2021-10-02 13:40:08 -03:00
parent 243a61e183
commit c0cc04d550

View file

@ -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}