mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: update elvish to 0.18.0
* replace deprecated 'except' with 'catch'
This commit is contained in:
parent
6fc4bb8fc6
commit
5a89563c0a
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -38,11 +38,11 @@ jobs:
|
|||||||
sudo apt-get -y install fish curl
|
sudo apt-get -y install fish curl
|
||||||
|
|
||||||
# Download elvish binary and add to path
|
# Download elvish binary and add to path
|
||||||
curl https://dl.elv.sh/linux-amd64/elvish-v0.17.0.tar.gz -o elvish-v0.17.0.tar.gz
|
curl https://dl.elv.sh/linux-amd64/elvish-v0.18.0.tar.gz -o elvish-v0.18.0.tar.gz
|
||||||
tar xzf elvish-v0.17.0.tar.gz
|
tar xzf elvish-v0.18.0.tar.gz
|
||||||
rm elvish-v0.17.0.tar.gz
|
rm elvish-v0.18.0.tar.gz
|
||||||
mkdir -p "$HOME/bin"
|
mkdir -p "$HOME/bin"
|
||||||
mv elvish-v0.17.0 "$HOME/bin/elvish"
|
mv elvish-v0.18.0 "$HOME/bin/elvish"
|
||||||
echo "$HOME/bin" >>"$GITHUB_PATH"
|
echo "$HOME/bin" >>"$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Install bats
|
- name: Install bats
|
||||||
|
4
asdf.elv
4
asdf.elv
@ -59,11 +59,11 @@ fn ls-executables {
|
|||||||
if (test -x $p) {
|
if (test -x $p) {
|
||||||
path:base $p
|
path:base $p
|
||||||
}
|
}
|
||||||
} except {
|
} catch {
|
||||||
# don't fail if permission denied
|
# don't fail if permission denied
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} except {
|
} catch {
|
||||||
# silence default non-zero exit status
|
# silence default non-zero exit status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user