Skip to content

Commit 30f4fe5

Browse files
committed
bugfix: lockfiles aren't actually files! They're directories.
Semantics are the same, so now just testing for -e exists.
1 parent fde1f99 commit 30f4fe5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

archive_fusionvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ done
5757
echo "Checking for lockfiles for VM list $vmxlist"
5858
for vmx in $vmxlist; do
5959
echo "Testing lockfile $vmx.lck"
60-
if [ -f "$vmx.lck" ]; then
60+
if [ -e "$vmx.lck" ]; then
6161
osascript -e 'tell application "VMware Fusion" to quit'
6262
break
6363
fi

tests/archive_fusionvm.zunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
$vmx
118118
EOF
119119

120-
touch "$vmx.lck"
120+
mkdir "$vmx.lck"
121121

122122
run archive_fusionvm $TEMP/decoy_dir $TEMP/out.dmg
123123

0 commit comments

Comments
 (0)