Add a Windows install script
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user