From e0c3601ff8bbb8da057b7784bf096ca088012556 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 28 Jun 2011 12:51:49 -0500 Subject: Use proper directory for disk-installs. Do completion of directory names only in clone system config since disk installs will have other files in /live/image/boot --- templates/clone/system/config/node.tag/from/node.tag/node.def | 2 +- templates/clone/system/config/node.tag/node.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/clone/system/config/node.tag/from/node.tag/node.def b/templates/clone/system/config/node.tag/from/node.tag/node.def index 6061efd..d5d7f67 100644 --- a/templates/clone/system/config/node.tag/from/node.tag/node.def +++ b/templates/clone/system/config/node.tag/from/node.tag/node.def @@ -1,5 +1,5 @@ help: Image to update from -allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) +allowed: reply=( $(compgen -d /live/image/boot/ | grep -v grub) ) for i in `seq 0 $[${#reply[@]}-1]`; do file=${reply[$i]} reply[$i]=${file/#\/live\/image\/boot\//} diff --git a/templates/clone/system/config/node.tag/node.def b/templates/clone/system/config/node.tag/node.def index d4a04c0..be028c9 100644 --- a/templates/clone/system/config/node.tag/node.def +++ b/templates/clone/system/config/node.tag/node.def @@ -1,5 +1,5 @@ help: Image to update -allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) +allowed: reply=( $(compgen -d /live/image/boot/ | grep -v grub) ) for i in `seq 0 $[${#reply[@]}-1]`; do file=${reply[$i]} reply[$i]=${file/#\/live\/image\/boot\//} -- cgit v1.2.3