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