WIP: piv fix (#28)

* piv logi fix

* dogo: $DFS

* snasp; doll: $2 for the name

* DFS_UPDATE_CHANNEL?

* git-branches

* ci: git-branches

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
This commit is contained in:
2022-11-15 22:18:16 +08:00
committed by GitHub
parent 3ce5a7ade8
commit c354f980bb
6 changed files with 26 additions and 13 deletions

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

View File

@@ -21,5 +21,5 @@ if [[ -z "$IMAGE" ]]; then
fmt_fatal "image not found"
else
echo "--> ${IMAGE_META[@]}"
$SUDO docker run -itd $IMAGE sh
$SUDO docker run ${2:+"--name"} $2 -itd $IMAGE sh
fi