From 2aa54d9cb0399371a72a768cb5657a2bfebfde9e Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 04:42:10 +0000 Subject: populate: run shell code with /bin/sh populate runs shell code on the deploying machine and on the target with /bin/sh, so neither needs a shell in PATH, as the PATH a CI job runs populate with may lack one. --- pkgs/populate/src/sh.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/populate/src/sh.rs') diff --git a/pkgs/populate/src/sh.rs b/pkgs/populate/src/sh.rs index 040ec0a..7a61d92 100644 --- a/pkgs/populate/src/sh.rs +++ b/pkgs/populate/src/sh.rs @@ -106,7 +106,7 @@ remove_others() { shift n=$((n - 1)) done - find "$dir" -mindepth 1 -maxdepth 1 "$@" -exec sh -c ' + find "$dir" -mindepth 1 -maxdepth 1 "$@" -exec /bin/sh -c ' log=$1 shift for path; do @@ -282,7 +282,7 @@ pub fn break_hard_links() -> String { + r#" remove_link "$1" "$2" if test -d "$1"; then - find "$1" -type f -links +1 -exec sh -c ' + find "$1" -type f -links +1 -exec /bin/sh -c ' for file; do copy=$(mktemp "$file.XXXXXX") cp -p "$file" "$copy" @@ -348,7 +348,7 @@ git_problems() ( exit fi nested=$( - find "$path" -path "$git_dir" -prune -o -name .git -exec sh -c ' + find "$path" -path "$git_dir" -prune -o -name .git -exec /bin/sh -c ' modules=$1 shift for git; do -- cgit v1.3.1