This commit is contained in:
2026-07-10 15:11:51 +08:00
parent 8bfcf23bc2
commit da17239d7d
148 changed files with 2542 additions and 4873 deletions
+30 -2
View File
@@ -1,8 +1,22 @@
#!/usr/bin/env bash
##makedesc: Install basic software from apt
sudo apt update && \
sudo apt upgrade -y --autoremove && \
set -eo pipefail
if [ "$(uname -s)" = "Darwin" ]; then
echo "ERROR: This script is for Debian/Ubuntu only. Use 'make brew' on macOS." >&2
exit 1
fi
install() {
echo
echo "==============================================="
echo "Installing basic software from apt"
echo "==============================================="
echo
sudo apt update
sudo apt upgrade -y --autoremove
sudo apt install -y \
alien \
apt-transport-https \
@@ -48,3 +62,17 @@ sudo apt update && \
# xclip
# sqlitebrowser
# etckeeper
echo
echo "Finish!"
echo
}
upgrade() {
install
}
case "$1" in
u|upgrade|update) upgrade ;;
*) install ;;
esac