From 93cc71411e42f7c577ac368af4014de4e3377c58 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Wed, 31 May 2023 11:48:42 -0500 Subject: [PATCH] added error if size not specified --- .bash_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index ab245ad..74b55f9 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -180,6 +180,10 @@ function cntdn() { } function ramdisk() { + if [ -z "$1" ]; then + echo "Error: Ramdisk size not specified." + return 1 + fi if [ ! -d "$HOME/ramdown" ]; then mkdir "$HOME/ramdown" fi