X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=setup;h=eefb056f98aac1b098c29fb196eaf86193a78ecc;hb=refs%2Fheads%2Fmaster;hp=44ef3f548c02dcc5e3dacb9bc2135036daf9de99;hpb=d9bc271d0faf80847ed819cbd6f9220667ff43d8;p=log-quiet diff --git a/setup b/setup index 44ef3f5..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,13 +20,14 @@ # 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 [[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@" usage() { - cat <