diff options
author | Erich Eckner <git@eckner.net> | 2016-04-13 15:05:25 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-13 15:05:25 +0200 |
commit | 0ad10b8f43c336140a12d7afa0aebdcc2ba3cc1a (patch) | |
tree | 684860efe77282aef0a9c586db6977812269631d | |
parent | aab33211779c18257acdecad8a7f3020c820b19f (diff) | |
download | archMirrorBootStrap-0ad10b8f43c336140a12d7afa0aebdcc2ba3cc1a.tar.xz |
use tempFile instead of pipes
-rwxr-xr-x | README | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |