Skip to content

Commit

Permalink
Improve test for presence of smbd
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 committed Sep 15, 2023
1 parent c7e91a0 commit ff2ebd6
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 ff2ebd6

Please sign in to comment.