4 # tagline: cross-platform service management for Linux, Mac, and Windows
15 my_url="https://rootprojects.org/serviceman/dist/$(uname -s)/$(uname -m)/serviceman"
16 curl -fL "$my_url" -o serviceman
20 # Move to ~/.local/bin
22 mv ./serviceman ~/.local/bin
26 my_serviceman=$(command -v serviceman)
28 if [ -n "$my_serviceman" ]; then
29 if [ "$my_serviceman" != "$HOME/.local/bin/serviceman" ]; then
30 echo "a serviceman installation (which make take precedence) exists at:"
31 echo " $my_serviceman"
36 # add to ~/.local/bin to PATH, just in case
37 pathman add ~/.local/bin # > /dev/null 2> /dev/null
38 # TODO inform user to add to path, apart from pathman?