Untitled
raw download clone
TEXT
views 71
,
size 327 b
#!/bin/bash

function load_config {
	RETVAL=""

	if [ -z $2 ]; then
		ROTULE="$1: "
	else
		ROTULE="$1 (default: $2): "
	fi

	read -p "$ROTULE"
	if [ -z $REPLY ]; then
		RETVAL=$2
	else
		RETVAL=$REPLY
	fi
}

load_config "Hide name (will be used to hide dirs/files)" "abc"
MODULE=$RETVAL

echo "$MODULE"
close fullscreen
Login or Register to edit or fork this paste. It's free.