added error if size not specified
This commit is contained in:
parent
3fb51b141d
commit
93cc71411e
@ -180,6 +180,10 @@ function cntdn() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ramdisk() {
|
function ramdisk() {
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Error: Ramdisk size not specified."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
if [ ! -d "$HOME/ramdown" ]; then
|
if [ ! -d "$HOME/ramdown" ]; then
|
||||||
mkdir "$HOME/ramdown"
|
mkdir "$HOME/ramdown"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user