Add a Windows install script

This commit is contained in:
2020-05-14 00:36:01 -04:00
parent 55c29f1813
commit 90be84e992
4 changed files with 86 additions and 71 deletions

View File

@@ -213,3 +213,23 @@ link_file() {
eval $link_cmd
}
function setup_file() {
src=$1
dest=$2
if [ ! -f $dest ]; then
link_file $src $dest $confirm_link
else
printf "${BOLD}*${NORMAL} ${YELLOW}'$dest'${NORMAL} already linked to ${YELLOW}'$src'${NORMAL}\n"
fi
}
function setup_dir() {
src=$1
dest=$2
if [ ! -d $dest ]; then
link_file $src $dest $confirm_link
else
printf "${BOLD}*${NORMAL} ${YELLOW}'$dest'${NORMAL} already linked to ${YELLOW}'$src'${NORMAL}\n"
fi
}

View File

@@ -23,6 +23,12 @@ error() {
printf "${BOLD}${RED}$1${NORMAL}"
}
fatal() {
msg=$1
printf "${RED}${msg}${NORMAL}\n"
exit 1
}
log() {
msg="$1"
value="$2"