mirror of
https://github.com/m-lamonaca/script-launcher.git
synced 2025-04-05 09:56:27 +00:00
14 lines
248 B
Bash
14 lines
248 B
Bash
|
#! /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
|