chiark / gitweb /
get-rfc: ensure that $HOME/misc/rfc exists
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 1 Mar 2010 13:24:01 +0000 (13:24 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 1 Mar 2010 13:24:01 +0000 (13:24 +0000)
get-rfc

diff --git a/get-rfc b/get-rfc
index aff8b7a..3e41df8 100755 (executable)
--- a/get-rfc
+++ b/get-rfc
@@ -1,5 +1,6 @@
 #! /bin/sh
 # Depends: wget
+mkdir -p "$HOME/misc/rfc"
 cd "$HOME/misc/rfc"
 [ -f "rfc$1.txt" ] || wget "http://www.ietf.org/rfc/rfc$1.txt"
 ${PAGER:-pager} "rfc$1.txt"