mirror of
https://github.com/veeso/termscp.git
synced 2026-09-26 05:51:20 -07:00
Merge remote-tracking branch 'origin/main' into 0.7.0
This commit is contained in:
@@ -67,7 +67,11 @@ If you are a Linux, a FreeBSD or a MacOS user this simple shell script will inst
|
|||||||
curl --proto '=https' --tlsv1.2 -sSLf "https://git.io/JBhDb" | sh
|
curl --proto '=https' --tlsv1.2 -sSLf "https://git.io/JBhDb" | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
while if you're a Windows user, you can install termscp with [Chocolatey](https://chocolatey.org/).
|
while if you're a Windows user, you can install termscp with [Chocolatey](https://chocolatey.org/):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
choco install termscp
|
||||||
|
```
|
||||||
|
|
||||||
For more information or other platforms, please visit [veeso.github.io](https://veeso.github.io/termscp/#get-started) to view all installation methods.
|
For more information or other platforms, please visit [veeso.github.io](https://veeso.github.io/termscp/#get-started) to view all installation methods.
|
||||||
|
|
||||||
|
|||||||
+1
-16
@@ -11,7 +11,6 @@
|
|||||||
TERMSCP_VERSION="0.7.0"
|
TERMSCP_VERSION="0.7.0"
|
||||||
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
||||||
DEB_URL="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_amd64.deb"
|
DEB_URL="${GITHUB_URL}/termscp_${TERMSCP_VERSION}_amd64.deb"
|
||||||
FREEBSD_URL="${GITHUB_URL}/termscp-${TERMSCP_VERSION}.txz"
|
|
||||||
RPM_URL="${GITHUB_URL}/termscp-${TERMSCP_VERSION}-1.x86_64.rpm"
|
RPM_URL="${GITHUB_URL}/termscp-${TERMSCP_VERSION}-1.x86_64.rpm"
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
@@ -183,21 +182,7 @@ confirm() {
|
|||||||
# Installers
|
# Installers
|
||||||
|
|
||||||
install_on_bsd() {
|
install_on_bsd() {
|
||||||
info "Installing termscp via FreeBSD pkg"
|
try_with_cargo "packages for freeBSD are distribuited no more. Only cargo installations are supported."
|
||||||
archive=$(get_tmpfile "txz")
|
|
||||||
download "${archive}" "${FREEBSD_URL}"
|
|
||||||
info "Downloaded FreeBSD package to ${archive}"
|
|
||||||
if test_writeable "/usr/local/bin"; then
|
|
||||||
sudo=""
|
|
||||||
msg="Installing termscp, please wait…"
|
|
||||||
else
|
|
||||||
warn "Root permissions are required to install termscp…"
|
|
||||||
elevate_priv
|
|
||||||
sudo="sudo"
|
|
||||||
msg="Installing termscp as root, please wait…"
|
|
||||||
fi
|
|
||||||
info "$msg"
|
|
||||||
$sudo pkg install -y "${archive}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_on_arch_linux() {
|
install_on_arch_linux() {
|
||||||
|
|||||||
Reference in New Issue
Block a user