summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-13 15:05:25 +0200
committerErich Eckner <git@eckner.net>2016-04-13 15:05:25 +0200
commit0ad10b8f43c336140a12d7afa0aebdcc2ba3cc1a (patch)
tree684860efe77282aef0a9c586db6977812269631d /README
parentaab33211779c18257acdecad8a7f3020c820b19f (diff)
downloadarchMirrorBootStrap-0ad10b8f43c336140a12d7afa0aebdcc2ba3cc1a.tar.xz
use tempFile instead of pipes
Diffstat (limited to 'README')
-rwxr-xr-xREADME9
1 files changed, 6 insertions, 3 deletions
diff --git a/README b/README
index ed8c7a4..9c18643 100755
--- a/README
+++ b/README
@@ -36,7 +36,10 @@ fi
# #
################
-pacman-key --add <(curl -o - "https://arch.eckner.net/archlinuxewe/masterkeys.gpg")
+tmpFile="$(mktemp)"
+curl -o "${tmpFile}" "https://arch.eckner.net/archlinuxewe/masterkeys.gpg"
+pacman-key --add "${tmpFile}"
+rm -f "${tmpFile}"
############################
# #
@@ -81,7 +84,7 @@ fi
if grep -q "^\[archlinuxewe\]\$" /etc/pacman.conf
then
- tmpFile=$(mktemp)
+ tmpFile="$(mktemp)"
cat /etc/pacman.conf | \
(
while read s
@@ -97,5 +100,5 @@ then
done
) > "${tmpFile}"
cat "${tmpFile}" > /etc/pacman.conf
- rm "${tmpFile}"
+ rm -f "${tmpFile}"
fi