diff --git a/helpers/make-grub2 b/helpers/make-grub2
index 14101b48601969bad23fe35c54c6c20d4e0f6241..652bfa9aa0c37438d04f810187664bad56135e0a 100644
--- a/helpers/make-grub2
+++ b/helpers/make-grub2
@@ -53,7 +53,7 @@ sed 's/class osx/class osx --unrestricted/; s/class windows/class osx --unrestri
 
 changelog "rebranded and adapted for trisquel"
 
-sed -i '/set -e/aexit77' tests/grub_cmd_set_date.in
+sed -i '/set -e/aexit 77' tests/grub_cmd_set_date.in
 
 changelog "skip test grub_cmd_set_date.in"