From 29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 25 Apr 2019 15:26:28 +0200 Subject: checkDependencies: avoid race of writing and reading cache file --- checkDependencies | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checkDependencies') diff --git a/checkDependencies b/checkDependencies index e7607e7fd..01e71b505 100755 --- a/checkDependencies +++ b/checkDependencies @@ -100,10 +100,10 @@ if [ ! -f '/tmp/packages' ]; then ) printf '%s\n' "${packages}" > /tmp/packages +else + packages=$(cat /tmp/packages) fi -packages=$(cat /tmp/packages) - packages=$( printf '%s\n' "${packages}" \ | sed ' -- cgit v1.2.3-70-g09d2