Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-13 12:16:22 +0200
committerErich Eckner <git@eckner.net>2018-06-13 12:16:22 +0200
commit63e29becccafbfeca5fa6b08abe731f38505f5e4 (patch)
tree5076abf1d807e9886d951f61413425d20f55d67f /bin
parent9b09b26118107142745f0f4ba1094de3d043d389 (diff)
bin/prioritize-build-list: do not write to input if it is a pipe
Diffstat (limited to 'bin')
-rwxr-xr-xbin/prioritize-build-list3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/prioritize-build-list b/bin/prioritize-build-list
index 87450e3..f68a559 100755
--- a/bin/prioritize-build-list
+++ b/bin/prioritize-build-list
@@ -92,7 +92,8 @@ verbose_flock ${wait_for_lock} 8
printf 'SELECT row_count();\n'
} | \
mysql_run_query | \
- if [ -w "$1" ]; then
+ if [ -w "$1" ] && \
+ [ ! -p "$1" ]; then
cat > "$1"
else
cat >&2