Fix install-signal-cli.ps1

This commit is contained in:
Markus Fleschutz 2021-06-29 20:35:17 +02:00
parent 708d3c3998
commit 7509212f69

View File

@ -22,9 +22,12 @@ try {
sudo tar xf "signal-cli-$Version.tar.gz" -C /opt
if ($lastExitCode -ne "0") { throw "'sudo tar xf' failed" }
sudo ln -sf "/opt/signal-cli-$Version)/bin/signal-cli" /usr/local/bin/
sudo ln -sf "/opt/signal-cli-$Version/bin/signal-cli" /usr/local/bin/
if ($lastExitCode -ne "0") { throw "'sudo ln -sf' failed" }
rm "signal-cli-$Version.tar.gz"
if ($lastExitCode -ne "0") { throw "'rm' failed" }
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ installed signal-cli $Version to /opt and /usr/local/bin in $Elapsed sec"
exit 0