#!/bin/bash function getCurrentDir() { local current_dir="${BASH_SOURCE%/*}" if [[ ! -d "${current_dir}" ]]; then current_dir="$PWD"; fi echo ${current_dir} } function includeDependencies() { source "${current_dir}/setupLibrary.sh" } current_dir=$(getCurrentDir) includeDependencies echo -n "Enter the new username of the user account:" read username addUserAccount ${username}