Update resize_journal.sh

This commit is contained in:
spiritLHLS 2022-12-18 11:32:15 +08:00 committed by GitHub
parent 238be9728c
commit 38df3efce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,9 @@ head() {
reading "Enter the desired size of the journal directory in MB (eg: 500): " size reading "Enter the desired size of the journal directory in MB (eg: 500): " size
} }
red(){ echo -e "\033[31m\033[01m$1$2\033[0m"; }
green(){ echo -e "\033[32m\033[01m$1$2\033[0m"; }
yellow(){ echo -e "\033[33m\033[01m$1$2\033[0m"; }
reading(){ read -rp "$(green "$1")" "$2"; } reading(){ read -rp "$(green "$1")" "$2"; }
main() { main() {