local/bin/rshare: Fallback to no-container on failure.
parent
b1419fc059
commit
4fc2ca881d
|
@ -88,7 +88,8 @@ share_python() {
|
|||
echo >&2 "Python HTTP server will listen on $IP:$PORT."
|
||||
if command -v guix >/dev/null 2>&1; then
|
||||
guix environment -C -N --expose="$TARGET"="$TARGET" --ad-hoc python -- \
|
||||
python3 -m http.server -d "$TARGET" $PORT
|
||||
python3 -m http.server -d "$TARGET" $PORT || \
|
||||
guix environment --ad-hoc python -- python3 -m http.server -d "$TARGET" $PORT
|
||||
elif command -v python3 >/dev/null 2>&1; then
|
||||
python3 -m http.server -d "$TARGET" $PORT
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue