Skip to content

Commit

Permalink
missing some quotes on readlink calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsmith committed Jan 12, 2016
1 parent e327c6f commit d2ec948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esxi/ghetto-esxi-linked-clones.sh
Expand Up @@ -383,10 +383,10 @@ then
echo "[*] Resolving datastore reference ${GOLDEN_VM}"
temp_path="`replace_datastore "${GOLDEN_VM}"`"
debug_var temp_path
GOLDEN_VM=`/bin/readlink -fn $temp_path`
GOLDEN_VM=`/bin/readlink -fn "$temp_path"`
else
# no datastore reference, so just fully deref the given path
GOLDEN_VM=`/bin/readlink -fn ${GOLDEN_VM}`
GOLDEN_VM=`/bin/readlink -fn "$GOLDEN_VM"`
fi
debug_var GOLDEN_VM

Expand Down Expand Up @@ -550,7 +550,7 @@ do
FINAL_VM_PATH="${FINAL_PATH}/$FINAL_VM_NAME"
# make new directory for new vm (readlink cleans up extra "/./"s)
mkdir_if_not_exist "${FINAL_VM_PATH}"
FINAL_VM_PATH=`readlink -fn "${FINAL_VM_PATH}"`
FINAL_VM_PATH=`readlink -fn "$FINAL_VM_PATH"`
debug_var FINAL_VM_PATH
FINAL_VMX_PATH=${FINAL_VM_PATH}/$FINAL_VM_NAME.vmx
debug_var FINAL_VMX_PATH
Expand Down

0 comments on commit d2ec948

Please sign in to comment.