From 8e6ea027c0386c11ba58a74a47ce0c612fe4b2bb Mon Sep 17 00:00:00 2001 From: Tom Klingenberg Date: Wed, 7 Dec 2016 15:34:59 +0100 Subject: [PATCH] Fix self-check in fake phar In 7964f40 a variable has been removed in error. Fix by re-adding it. Refs: - 7964f40 Self-check in fake phar --- CHANGELOG.md | 1 + n98-magerun.phar | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c9ddee59..8c2f70bee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ RECENT CHANGES 1.97.27 ------- +* Fix: self-check in fake phar (reported by Liviu Panainte, thanks!) 1.97.26 ------- diff --git a/n98-magerun.phar b/n98-magerun.phar index a693f0cb8..e064261a2 100755 --- a/n98-magerun.phar +++ b/n98-magerun.phar @@ -7,7 +7,9 @@ echo "Info: Magerun has not been downloaded yet, downloading it ...\n"; +$url = 'https://files.magerun.net/n98-magerun.phar'; $target = 'n98-magerun.phar'; + $old = md5_file($target); $file = @fopen($url, 'r'); if ($file === false) {