fix: update elvish to 0.18.0

* replace deprecated 'except' with 'catch'
This commit is contained in:
skwerlman 2022-04-09 13:07:19 -04:00 committed by Trevor Brown
parent 6fc4bb8fc6
commit 5a89563c0a
2 changed files with 6 additions and 6 deletions

View File

@ -38,11 +38,11 @@ jobs:
sudo apt-get -y install fish curl
# 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
tar xzf elvish-v0.17.0.tar.gz
rm 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.18.0.tar.gz
rm elvish-v0.18.0.tar.gz
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"
- name: Install bats

View File

@ -59,11 +59,11 @@ fn ls-executables {
if (test -x $p) {
path:base $p
}
} except {
} catch {
# don't fail if permission denied
}
}
} except {
} catch {
# silence default non-zero exit status
}
}