Skip to content

Commit

Permalink
fix(serviceman): do not use 'sudo' or 'env PATH="$PATH"'
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Dec 16, 2024
1 parent 117ee61 commit 7b8f882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion brew/brew-update-service-install
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main() { (
fi
serviceman --version

env PATH="$PATH" serviceman add --agent \
serviceman add --agent \
--workdir ~/.local/opt/brew/ \
--name sh.brew.updater -- \
~/.local/bin/brew-update-hourly
Expand Down
3 changes: 1 addition & 2 deletions dashcore-utils/dashd-hd-service-install
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ fn_srv_install() { (
cd "${my_vol}" || return 1
# leave options unquoted so they're interpreted separately
# shellcheck disable=SC2086
sudo env PATH="${PATH}" \
serviceman add --name "${my_name}" -- \
serviceman add --name "${my_name}" -- \
dashd \
${my_net_flag} \
-usehd \
Expand Down

0 comments on commit 7b8f882

Please sign in to comment.