diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2015-04-15 00:27:42 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2015-04-15 00:27:42 +0200 |
commit | 9353a5e1cb460ad98d91e77221c3aedcc40673d2 (patch) | |
tree | e6b1ce3cb01fc23b7fccc159cebc7b003df24e79 | |
parent | 3674126d9c258def8c7b2760fc9d2c00e23e9a01 (diff) |
Fix grep syntax in freeze subcommand
-rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 67b75e7..3e209b5 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -1286,7 +1286,7 @@ freeze) | |||
1286 | # TODO: This assumes no files have been deleted from when the jail was initially created. Safe assumption for now. | 1286 | # TODO: This assumes no files have been deleted from when the jail was initially created. Safe assumption for now. |
1287 | # TODO: This assumes no files have been renamed from when the jail was initially created. Not so sure. | 1287 | # TODO: This assumes no files have been renamed from when the jail was initially created. Not so sure. |
1288 | /sbin/zfs diff -H "${ezjail_parentzfs}/${ezjail_hostname}@_vanilla_newjail_" "${ezjail_parentzfs}/${ezjail_hostname}" | \ | 1288 | /sbin/zfs diff -H "${ezjail_parentzfs}/${ezjail_hostname}@_vanilla_newjail_" "${ezjail_parentzfs}/${ezjail_hostname}" | \ |
1289 | grep -E "^(M|+)" | cut -f 2 | cpio -d -m -p -v "${ezjail_flavours_dir}/${ezjail_flavour}" | 1289 | grep -E "^[M+]" | cut -f 2 | cpio -d -m -p -v "${ezjail_flavours_dir}/${ezjail_flavour}" |
1290 | 1290 | ||
1291 | ;; | 1291 | ;; |
1292 | ######################## ezjail-admin SNAPSHOT ######################## | 1292 | ######################## ezjail-admin SNAPSHOT ######################## |