mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-07 01:10:29 +08:00
minor change
This commit is contained in:
parent
d3766b883e
commit
1ce4aab8a7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user