diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-09-24 20:47:22 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-09-24 22:41:54 +0900 |
| commit | f0c4ee4047f3b70241bacab712642437e37fad2f (patch) | |
| tree | 45c711fb9d946001909b59d58c6eb31f6b36c0d1 /shell/update-common.sh | |
| parent | de0df2422ac26edcd083d801e93635deb0786589 (diff) | |
| download | fzf-f0c4ee4047f3b70241bacab712642437e37fad2f.tar.gz | |
make lint: Perform bash script linting
Diffstat (limited to 'shell/update-common.sh')
| -rwxr-xr-x | shell/update-common.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/shell/update-common.sh b/shell/update-common.sh deleted file mode 100755 index 55905043..00000000 --- a/shell/update-common.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -# This script applies the contents of "common.sh" to the other files. - -set -e - -# Go to the directory that contains this script -dir=${0%"${0##*/}"} -if [ -n "$dir" ]; then - cd "$dir" -fi - -update() { - { - sed -n '1,/^#----BEGIN INCLUDE common\.sh/p' "$1" - 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-common.sh" to apply -# the changes. See code comments in "common.sh" for the implementation details. -EOF - grep -v '^[[:blank:]]*#' common.sh # remove code comments in common.sh - sed -n '/^#----END INCLUDE/,$p' "$1" - } > "$1.part" - - mv -f "$1.part" "$1" -} - -update completion.bash -update completion.zsh -update key-bindings.bash -update key-bindings.zsh |
