mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -08: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
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
|
||||
17
install.sh
17
install.sh
@@ -11,7 +11,6 @@
|
||||
TERMSCP_VERSION="0.7.0"
|
||||
GITHUB_URL="https://github.com/veeso/termscp/releases/download/v${TERMSCP_VERSION}"
|
||||
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"
|
||||
|
||||
set -eu
|
||||
@@ -183,21 +182,7 @@ confirm() {
|
||||
# Installers
|
||||
|
||||
install_on_bsd() {
|
||||
info "Installing termscp via FreeBSD pkg"
|
||||
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}"
|
||||
try_with_cargo "packages for freeBSD are distribuited no more. Only cargo installations are supported."
|
||||
}
|
||||
|
||||
install_on_arch_linux() {
|
||||
|
||||
Reference in New Issue
Block a user