#!/bin/bash
#
# Blueprint command shortcut
# Learn more @ blueprint.zip

[[ "$EUID" == 0 ]] || exec sudo -s "/usr/local/bin/blueprint" "$@"

export BLUEPRINT__FOLDER="BLUEPRINT_FOLDER_HERE"

# Only runs when sourced
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
    export BLUEPRINT__PROFILE="available"
    source "$BLUEPRINT__FOLDER/blueprint.sh"
    # shellcheck disable=SC2317
    return 0
fi

# Run Blueprint command
bash "$BLUEPRINT__FOLDER/blueprint.sh" -bash "${@}"
