summaryrefslogtreecommitdiff
path: root/checkDependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-25 15:28:47 +0200
committerErich Eckner <git@eckner.net>2019-04-25 15:28:47 +0200
commitd02f9c5f330fb6c0c5ea61c1712de7de2d7599dc (patch)
treea04945587d1b47d79199a84f47b1c0d32735cca8 /checkDependencies
parent29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507 (diff)
downloadarchlinuxewe-d02f9c5f330fb6c0c5ea61c1712de7de2d7599dc.tar.xz
checkDependencies: style
Diffstat (limited to 'checkDependencies')
-rwxr-xr-xcheckDependencies8
1 files changed, 4 insertions, 4 deletions
diff --git a/checkDependencies b/checkDependencies
index 01e71b505..54c6d3370 100755
--- a/checkDependencies
+++ b/checkDependencies
@@ -1,6 +1,7 @@
#!/bin/bash
mirror_base='/srv/arch-mirror/arch/arch/merged'
+cache_file='/tmp/packages'
if [ ! -f '/tmp/packages' ]; then
packages=$(
@@ -96,12 +97,11 @@ if [ ! -f '/tmp/packages' ]; then
done \
| sed '
s/\([<>=]\S\+\)-\S\+$/\1/
- '
+ ' \
+ | tee "${cache_file}"
)
-
- printf '%s\n' "${packages}" > /tmp/packages
else
- packages=$(cat /tmp/packages)
+ packages=$(cat "${cache_file}")
fi
packages=$(