-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Shorten variables, use Bash conditional, and update README.md
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/bin/sh | ||
set -eu | ||
if [ $RUNNER_OS = macOS ]; then restic_os=darwin; else restic_os=linux; fi | ||
echo ::group::Downloading Restic $version for $restic_os | ||
aria2c -x 16 $GITHUB_SERVER_URL/restic/restic/releases/download/v$version/restic_${version}_${restic_os}_amd64.bz2 | ||
bzip2 -d restic_${version}_${restic_os}_amd64.bz2 | ||
if [ $RUNNER_OS = macOS ]; then os=darwin; else os=linux; fi | ||
echo ::group::Downloading Restic $version for $RUNNER_OS | ||
aria2c -x 16 $GITHUB_SERVER_URL/restic/restic/releases/download/v$version/restic_${version}_${os}_amd64.bz2 | ||
bzip2 -d restic_${version}_${os}_amd64.bz2 | ||
mkdir Restic | ||
mv restic_${version}_${restic_os}_amd64 Restic/restic | ||
mv restic_${version}_${os}_amd64 Restic/restic | ||
chmod +x Restic/restic | ||
echo ::endgroup:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters