diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-09-24 22:09:37 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-09-24 22:41:54 +0900 |
| commit | e8cb31541984e93dcbaa5f2ac5f56ec390279d5e (patch) | |
| tree | 115b545d1ab3bd0fb28a6c734e9bdc840e24c018 /shell/update.sh | |
| parent | f0c4ee4047f3b70241bacab712642437e37fad2f (diff) | |
| download | fzf-e8cb31541984e93dcbaa5f2ac5f56ec390279d5e.tar.gz | |
Apply shfmt to bash script files (make fmt)
Diffstat (limited to 'shell/update.sh')
| -rwxr-xr-x | shell/update.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/update.sh b/shell/update.sh index 4b6f63ae..61374d35 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -9,11 +9,12 @@ dir=${0%"${0##*/}"} update() { { sed -n '1,/^#----BEGIN INCLUDE common\.sh/p' "$1" - cat <<EOF + cat << EOF # NOTE: Do not directly edit this section, which is copied from "common.sh". # To modify it, one can edit "common.sh" and run "./update.sh" to apply # the changes. See code comments in "common.sh" for the implementation details. EOF + echo grep -v '^[[:blank:]]*#' "$dir/common.sh" # remove code comments in common.sh sed -n '/^#----END INCLUDE/,$p' "$1" } > "$1.part" |
