diff options
author | Erich Eckner <git@eckner.net> | 2019-04-25 15:26:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-25 15:26:28 +0200 |
commit | 29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507 (patch) | |
tree | 61c59cde2f5d48f811435e956813d949de57a62a | |
parent | ce310003dd52d82faf1d19eae20697ad5713a747 (diff) | |
download | archlinuxewe-29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507.tar.xz |
checkDependencies: avoid race of writing and reading cache file
-rwxr-xr-x | checkDependencies | 4 |
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 ' |