Permalink
Browse files

Pass image file as argument

  • Loading branch information...
1 parent 6818a16 commit fdf727f29240c2f42f7c925a63a3821900b19848 @singpolyma singpolyma committed Aug 24, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 build_mirror
View
@@ -1,10 +1,14 @@
#!/bin/sh
-IMAGE_FILE="/home/psycotica0/cache.img"
+IMAGE_FILE="$1"
IMAGE_SIZE="400M"
CACHE_LOCATION="/mnt/cache"
UNION_LOCATION="/mnt/union"
+if [ -z "$IMAGE_FILE" ]; then
+ echo "Please pass the path where you want your image file" >&2
+fi
+
if [ "$(whoami)" != "root" ]; then
echo "You're going to want to be root" >&2;
exit 2

0 comments on commit fdf727f

Please sign in to comment.