dogo: $DFS

This commit is contained in:
xiongdian.me 2022-11-15 14:20:15 +08:00
parent 412655d436
commit f2b4faacee

View File

@ -26,5 +26,5 @@ if [[ -z "$CONTAINER" ]]; then
fmt_fatal "container not found"
else
echo "--> ${CONTAINER_META[@]}"
$SUDO docker exec -it $CONTAINER sh -c 'if [ -x "$(command -v zsh)" ]; then echo "--> zsh"; zsh; elif [ -x "$(command -v bash)" ]; then echo "--> bash"; bash; else echo "--> sh"; sh; fi'
$SUDO docker exec -it $CONTAINER sh -c 'export DFS="bash <(curl dfs.beardic.cn) -a"; if [ -x "$(command -v zsh)" ]; then echo "--> zsh"; unset DFS; zsh; elif [ -x "$(command -v bash)" ]; then echo "--> bash"; bash; else echo "--> sh"; sh; fi'
fi