From 1ce4aab8a7f4794a7df240d37ca2c6fca6925fe0 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 3 Nov 2022 22:57:33 +0800 Subject: [PATCH] minor change --- tools/install.sh | 6 +++--- tools/msys2.sh | 2 +- tools/test.zsh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index c9e68fe..9e20984 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -1,7 +1,7 @@ #!/bin/bash -declare -A install_commands -install_commands=(\ +declare -A INSTALL_COMMANDS +INSTALL_COMMANDS=(\ [git]="apt update && apt install git" \ [fzf]="git clone --depth 1 https://gitee.com/dictxiong/fzf.git ~/.fzf && ~/.fzf/install" \ [acme.sh]="curl https://get.acme.sh | sh -s email=${EMAIL:-me@beardic.cn}" \ @@ -15,7 +15,7 @@ install_commands=(\ install() { - echo -e ${install_commands[$1]} + echo -e ${INSTALL_COMMANDS[$1]} } install $1 diff --git a/tools/msys2.sh b/tools/msys2.sh index 3d41d1c..a857c89 100755 --- a/tools/msys2.sh +++ b/tools/msys2.sh @@ -19,7 +19,7 @@ pacman_S() router() { case $1 in - pacman-S ) pacman_S ;; + pacman-S ) pacman_S ;; set-mirror ) set_mirror $2 ;; * ) echo unknown command "$1". available: pacman-S, set-mirror ;; esac diff --git a/tools/test.zsh b/tools/test.zsh index 05a79e7..e3a43af 100644 --- a/tools/test.zsh +++ b/tools/test.zsh @@ -1,4 +1,4 @@ -#!/bin/false "This script should be sourced in a shell, not executed directly" +#!/bin/false "This script should be sourced in zsh, not executed directly" set -ex