From 5466bab787088ad073c43c0fc8bc7c4757b8b581 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 11 Oct 2016 09:42:34 +0200 Subject: [PATCH] Refactor elc-recompiling script a bit --- recompile-files.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recompile-files.sh b/recompile-files.sh index 9f08e19..7a93f1e 100755 --- a/recompile-files.sh +++ b/recompile-files.sh @@ -7,8 +7,9 @@ for file in `find -iname '*.elc'` do elc=`basename "$file"` el="${elc%c}" + dir=`dirname "$file"` - cd `dirname "$file"` + cd "$dir" if test "$elc" -ot "$el" then