From 9353a5e1cb460ad98d91e77221c3aedcc40673d2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Wed, 15 Apr 2015 00:27:42 +0200 Subject: Fix grep syntax in freeze subcommand --- ezjail-admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ezjail-admin') diff --git a/ezjail-admin b/ezjail-admin index 67b75e7..3e209b5 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -1286,7 +1286,7 @@ freeze) # TODO: This assumes no files have been deleted from when the jail was initially created. Safe assumption for now. # TODO: This assumes no files have been renamed from when the jail was initially created. Not so sure. /sbin/zfs diff -H "${ezjail_parentzfs}/${ezjail_hostname}@_vanilla_newjail_" "${ezjail_parentzfs}/${ezjail_hostname}" | \ - grep -E "^(M|+)" | cut -f 2 | cpio -d -m -p -v "${ezjail_flavours_dir}/${ezjail_flavour}" + grep -E "^[M+]" | cut -f 2 | cpio -d -m -p -v "${ezjail_flavours_dir}/${ezjail_flavour}" ;; ######################## ezjail-admin SNAPSHOT ######################## -- cgit v1.2.3