From 5f3e5c2b3cc619a0abb8c5aeafb55b2845b7bbc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Mon, 13 Nov 2017 22:09:59 +0100 Subject: [PATCH] Change back to the current working directory after getting the version --- bin/md2resume | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/md2resume b/bin/md2resume index f5f86c6..d79e26a 100755 --- a/bin/md2resume +++ b/bin/md2resume @@ -3,6 +3,7 @@ error_reporting(E_ALL | E_STRICT); $baseDir = dirname(__DIR__); +$cwd = getcwd(); $templatePath = $baseDir . '/templates'; $consoleTemplatePath = $baseDir . '/src/Resume/Templates'; @@ -31,6 +32,7 @@ $console = new Resume\Cli\Resume(); chdir($baseDir); $versionCmd = 'git describe --abbrev=0 --tags'; $version = trim(shell_exec($versionCmd)); +chdir($cwd); // Fetch the project name and description $project = json_decode(file_get_contents(__DIR__ . '/../composer.json'));