mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 17:14:28 +01:00
Fix install-signal-cli.ps1
This commit is contained in:
parent
708d3c3998
commit
7509212f69
@ -22,9 +22,12 @@ try {
|
|||||||
sudo tar xf "signal-cli-$Version.tar.gz" -C /opt
|
sudo tar xf "signal-cli-$Version.tar.gz" -C /opt
|
||||||
if ($lastExitCode -ne "0") { throw "'sudo tar xf' failed" }
|
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" }
|
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
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ installed signal-cli $Version to /opt and /usr/local/bin in $Elapsed sec"
|
"✔️ installed signal-cli $Version to /opt and /usr/local/bin in $Elapsed sec"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user