summaryrefslogtreecommitdiff
path: root/checkDependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-25 15:26:28 +0200
committerErich Eckner <git@eckner.net>2019-04-25 15:26:28 +0200
commit29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507 (patch)
tree61c59cde2f5d48f811435e956813d949de57a62a /checkDependencies
parentce310003dd52d82faf1d19eae20697ad5713a747 (diff)
downloadarchlinuxewe-29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507.tar.xz
checkDependencies: avoid race of writing and reading cache file
Diffstat (limited to 'checkDependencies')
-rwxr-xr-xcheckDependencies4
1 files changed, 2 insertions, 2 deletions
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 '