mirror of
https://github.com/m-lamonaca/script-launcher.git
synced 2025-05-15 01:34:46 +00:00
Update README & install scripts
This commit is contained in:
parent
dc40ced033
commit
6a01577912
4 changed files with 53 additions and 29 deletions
13
install-as-dotnet-tool.sh
Executable file
13
install-as-dotnet-tool.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
dotnet pack ./src -o ./nupkg
|
||||
|
||||
EXISTS=$(command -v script-launcher)
|
||||
|
||||
if [ "$EXISTS" ]; then
|
||||
ACTION="update"
|
||||
else
|
||||
ACTION="install"
|
||||
fi
|
||||
|
||||
dotnet tool "$ACTION" -g ScriptLauncher --add-source ./nupkg --ignore-failed-sources
|
Loading…
Add table
Add a link
Reference in a new issue