From 4fc2ca881da61825beca6e38b9d73c23a0dfd15e Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 15 Dec 2020 16:56:24 +0100 Subject: [PATCH] local/bin/rshare: Fallback to no-container on failure. --- .local/bin/rshare | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/rshare b/.local/bin/rshare index dd3a5fdf..86457c21 100755 --- a/.local/bin/rshare +++ b/.local/bin/rshare @@ -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