local/bin/rshare: Support unmountable locations.

master
Pierre Neidhardt 2020-08-08 11:30:41 +02:00
parent 48c6bd4f29
commit 750dfe3c85
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ EOF
share_woof() {
if command -v guix >/dev/null 2>&1; then
guix environment -C -N --expose="$TARGET"="$TARGET" --ad-hoc woof -- woof -c 9999 -p $PORT "$TARGET"
guix environment -C -N --expose="$TARGET"="$TARGET" --ad-hoc woof -- woof -c 9999 -p $PORT "$TARGET" || \
guix environment --ad-hoc woof -- woof -c 9999 -p $PORT "$TARGET"
else
woof -c 9999 -p $PORT "$TARGET"
fi