X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=setup;h=eefb056f98aac1b098c29fb196eaf86193a78ecc;hb=HEAD;hp=7ce3624fb7aee0f9be68f6c146897c682f002868;hpb=ea9d543d812b5ec13d4d3c6b424626f3afaaa5dc;p=log-quiet diff --git a/setup b/setup index 7ce3624..eefb056 100755 --- a/setup +++ b/setup @@ -1,5 +1,12 @@ #!/bin/bash -# Copyright (C) 2017 Ian Kelling +# I, Ian Kelling, follow the GNU license recommendations at +# https://www.gnu.org/licenses/license-recommendations.en.html. They +# recommend that small programs, < 300 lines, be licensed under the +# Apache License 2.0. This file contains or is part of one or more small +# programs. If a small program grows beyond 300 lines, I plan to switch +# its license to GPL. + +# Copyright 2024 Ian Kelling # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,6 +20,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR @@ -65,8 +73,8 @@ if $uninstall; then fi else if $dry; then - echo "setup dry run: install -v ${files[*]} /usr/local/bin" + echo "setup dry run: install ${files[*]} /usr/local/bin" else - install -v ${files[@]} /usr/local/bin + install -C ${files[@]} /usr/local/bin fi fi