added error if size not specified

Former-commit-id: 93cc71411e
This commit is contained in:
2023-05-31 11:48:42 -05:00
parent 54357fb6a7
commit e4daa45b4f

View File

@@ -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