Permalink
Browse files

Fixing a minor globbing bug.

  • Loading branch information...
1 parent fa214e8 commit 72907adc0c0d20954827dd0c399412a91ab45c1a @cowboy committed Sep 17, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 source/50_osx.sh
View
@@ -24,9 +24,11 @@ function vm_template() {
local src="$src_dir/$name"
if [[ ! "$name" || ! -e "$src" ]]; then
echo "You must specify a valid VM template from this list:";
+ shopt -s nullglob
for f in "$src_dir"/*.pvm "$src_dir"/*.pvm.zip; do
echo " * $(basename "$f")"
done
+ shopt -u nullglob
return 1
fi
if [[ -e "$dest" ]]; then

0 comments on commit 72907ad

Please sign in to comment.