Skip to content

Commit

Permalink
Improve test for presence of smbd (#754)
Browse files Browse the repository at this point in the history
Will now work with nix / nixOS

Co-authored-by: omernaveedxyz <[email protected]>
  • Loading branch information
philclifford and omernaveedxyz authored Oct 16, 2023
1 parent 392e74c commit 6eeb3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ function vm_boot() {
fi

# If smbd is available and ~/Public is present export it to the guest via samba
if [[ -e "/usr/sbin/smbd" && -n ${PUBLIC} ]]; then
if [[ -x "$(command -v smbd)" && -n ${PUBLIC} ]]; then
NET="${NET},smb=${PUBLIC}"
echo " - smbd: On guest: smb://10.0.2.4/qemu"
fi
Expand Down

0 comments on commit 6eeb3db

Please sign in to comment.