Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add license to install.sh #65

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTICE:
# The following was adapted from the original source, and includes modified changes.
# Original source: https:/DopplerHQ/cli/blob/08cd5113f646ed98d4ca806c204428c68a69b8a1/scripts/install.sh
#

#!/usr/bin/env sh

set -e
Expand Down Expand Up @@ -169,7 +187,7 @@ wget_download() {
if [ -z "$security_flags" ] && [ "$component" = "Binary" ]; then
log_debug "Skipping additional security flags that are unsupported by BusyBox wget"
# log to stderr b/c this function's stdout is parsed
log_warning "This system's wget binary is provided by BusyBox. Doppler strongly suggests installing GNU wget, which provides additional security features."
log_warning "This system's wget binary is provided by BusyBox. We strongly suggests installing GNU wget, which provides additional security features."
fi

# allow wget to fail w/o exiting
Expand Down Expand Up @@ -223,12 +241,6 @@ check_http_status() {
log ""
log "$error"

if [ "$status_code" -eq 404 ]; then
log ""
log "Please report this issue:"
log "https:/DopplerHQ/cli/issues/new?template=bug_report.md&title=[BUG]%20Unexpected%20404%20using%20CLI%20install%20script"
fi

clean_exit 1
fi
}
Expand Down Expand Up @@ -265,9 +277,6 @@ case "$uname_os" in
*MINGW64*) os="win" ;;
*)
log "ERROR: Unsupported OS '$uname_os'"
log ""
log "Please report this issue:"
log "https:/DopplerHQ/cli/issues/new?template=bug_report.md&title=[BUG]%20Unsupported%20OS"
clean_exit 1
;;
esac
Expand All @@ -290,9 +299,6 @@ elif [ "$uname_machine" = "arm64" ] || [ "$uname_machine" = "aarch64" ]; then
arch="arm64"
else
log "ERROR: Unsupported architecture '$uname_machine'"
log ""
log "Please report this issue:"
log "https:/DopplerHQ/cli/issues/new?template=bug_report.md&title=[BUG]%20Unsupported%20architecture"
clean_exit 1
fi

Expand All @@ -309,7 +315,6 @@ fi
log_debug "Detected format '$format'"

url=https:/seamapi/seam-cli/releases/download/v0.0.8/seam-$os
key_url="https://$DOPPLER_DOMAIN/keys/public"


set +e
Expand Down
Loading