mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-12 00:35:34 +00:00
12 lines
374 B
Bash
Executable File
12 lines
374 B
Bash
Executable File
#! /bin/bash
|
|
|
|
latest_restic_version=$(./scripts/latest-restic-version.sh)
|
|
|
|
if [ -z "$latest_restic_version" ]; then
|
|
echo "Failed to get latest restic version"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Latest restic version: $latest_restic_version"
|
|
|
|
sed -i -E "s/^.*RequiredResticVersion\ =\ .*$/ RequiredResticVersion\ =\ \"$latest_restic_version\"/g" internal/resticinstaller/resticinstaller.go |