better error output
[automated-distro-installer] / arch-pxe
index 5a5b5464360e214b2e1543639cb149661385da71..56e479094cf2a6525b4835baab4e04c7b2d5d9a8 100755 (executable)
--- a/arch-pxe
+++ b/arch-pxe
@@ -1,9 +1,10 @@
 #!/bin/bash -lx
 
-# manually download image to /a/opt, and set it's name below.
+# Setup arch pxe boot server from the base image.
+# Requires manually downloading image to /a/opt, and set it's name below.
 
 set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
+trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 
 cd /a/opt
 #iso="archlinux-2015.11.01-dual"