install.sh: cmake, less, and -l=DFS_LITE (#23)

* install.sh: cmake and less

* install.sh: -l=DFS_LITE

* ci: support -l=DFS_LITE

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
This commit is contained in:
2022-11-09 23:19:55 +08:00
committed by GitHub
parent 6dce3cfa18
commit 300b3a29b7
4 changed files with 17 additions and 16 deletions

View File

@@ -103,7 +103,7 @@ setup_color() {
ask_for_yN()
{
while [[ -z "$DFS_QUIET" ]]; do
while [[ -z "$DFS_QUIET" || "$DFS_QUIET" == "0" ]]; do
read -p "${FMT_YELLOW}$1${FMT_RESET} [yN]: " yn
case $yn in
[Yy]* ) return 1;;
@@ -115,7 +115,7 @@ ask_for_yN()
ask_for_Yn()
{
while [[ -z "$DFS_QUIET" ]]; do
while [[ -z "$DFS_QUIET" || "$DFS_QUIET" == "0" ]]; do
read -p "${FMT_YELLOW}$1${FMT_RESET} [Yn]: " yn
case $yn in
[Nn]* ) return 0;;

View File

@@ -17,7 +17,7 @@ apt_install()
for i in {man-db,vim,ca-certificates}; do apt install $i -y; done
# mass installation
apt install git tmux zsh curl wget dialog net-tools dnsutils netcat traceroute sudo python3 python3-pip cron inetutils-ping openssh-client openssh-server htop gcc g++ cmake make zip
apt install git tmux zsh curl wget dialog net-tools dnsutils netcat traceroute sudo python3 python3-pip cron inetutils-ping openssh-client openssh-server htop gcc g++ cmake make zip less
for i in {fzf,ripgrep}; do apt install $i -y; done
}