Index: scripts/_functions_ =================================================================== diff -u -r33ce323edd28935192fdb15010fd51eaa610aa58 -r5c634095d571c4d74101171c767f7d4a042f9f9a --- scripts/_functions_ (.../_functions_) (revision 33ce323edd28935192fdb15010fd51eaa610aa58) +++ scripts/_functions_ (.../_functions_) (revision 5c634095d571c4d74101171c767f7d4a042f9f9a) @@ -28,6 +28,7 @@ # sources . ./_errors_ +. ./_variables_ # functions @@ -174,3 +175,22 @@ "$ERR_CMDFAIL_USB_FOLDER_REMOVE" ) echo "usb mount point '$2' cannot be removed." ;; esac } + +echo_dash_comment() { + echo "$COMMENT_DASH"" $1 " +} + +echo_dash_message() { + echo " $1" +} + +function confirm() { + read -p "$1? [y,n]" -n 1 -r CONTINUE + if [ "$CONTINUE" == "y" ]; then + echo "" + return $TRUE + else + echo "" + return $FALSE + fi +}