Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@
# Branches reduce reproducibility - builds should fail fast with clear errors
# if dependencies are missing, not silently fall back to different behavior.

# Use PATH-resolved bash on Windows to avoid hardcoded /usr/bin/bash which doesn't
# exist in Chocolatey's make environment or on GitHub Actions windows-latest.
# Use PATH-resolved bash for portability across different systems.
# - Windows: /usr/bin/bash doesn't exist in Chocolatey's make environment or GitHub Actions
# - NixOS: /bin/bash doesn't exist, bash is in /nix/store/...
# - Other systems: /usr/bin/env bash resolves from PATH
ifeq ($(OS),Windows_NT)
SHELL := bash
else
SHELL := /bin/bash
SHELL := /usr/bin/env bash
endif
.SHELLFLAGS := -eu -o pipefail -c

Expand Down
4 changes: 2 additions & 2 deletions docs/init-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Add a `.mux/init` executable script to your project root to run commands when cr
## Example

```bash
#!/bin/bash
#!/usr/bin/env bash
set -e

bun install
Expand Down Expand Up @@ -40,7 +40,7 @@ Init hooks receive the following environment variables:
**Note for SSH workspaces:** Since the project is synced to the remote machine, files exist in both locations. The init hook runs in the workspace directory (`$PWD`), so use relative paths to reference project files:

```bash
#!/bin/bash
#!/usr/bin/env bash
set -e

echo "Runtime: $MUX_RUNTIME"
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-macos-signing.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Sets up macOS code signing and notarization from GitHub secrets
# Usage: ./scripts/setup-macos-signing.sh
#
Expand Down
2 changes: 1 addition & 1 deletion vscode/scripts/create-icon.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Create icon.png from the cmux logo for the VS Code extension

set -e
Expand Down