Files

10 lines
312 B
Bash

# Stage the prebuilt static nash binary (built by CI from shell/, target musl).
stage() {
local dest="$1" arch="$2" bin="$OS_DIR/dist/bin/nash-$arch"
if [ ! -x "$bin" ]; then
echo "prebuilt binary missing: $bin" > "$dest/.skip-reason"
return 1
fi
install -D -m 0755 "$bin" "$dest/usr/bin/nash"
}