Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support snapper 0.11.0 #34

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions snapraid-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

readonly COPYRIGHT_YEARS='2017-2023'
readonly COPYRIGHT_YEARS='2017-2024'
readonly DEFAULT_CONFIG_FILE=/etc/snapraid.conf
readonly DEFAULT_SNAPPER_CONFIG_DIR=/etc/snapper/configs
readonly DEFAULT_TMPDIR=/tmp
Expand Down Expand Up @@ -687,7 +687,7 @@ find_configs_try() {
config="$1"
found=
if subvol="$("$my_snapper" -c "$config" get-config 2>/dev/null |
sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*| //')"
sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*[|│] //')"
then
while IFS=$' \t' read -r field1 field2 field3 ; do
if [[ "$field1" =~ ^(data|disk)$ ]] &&
Expand Down