mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-13 22:02:34 +00:00
adds mkhpadir script
This commit is contained in:
25
scripts/scripts/mkhpadir
Executable file
25
scripts/scripts/mkhpadir
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# Creates a new home performance assesment directory, from the skeleton
|
||||
# directory.
|
||||
|
||||
sdate="$(date '+%Y.%m.%d' | cut -c3-)"
|
||||
customerName="$1"
|
||||
dirName="${sdate}.${customerName}_HPA"
|
||||
skelPath="$SKELETONDIR/hpa"
|
||||
|
||||
#-------------------- MAIN --------------------
|
||||
|
||||
if [ -z $customerName ]; then
|
||||
echo "Customer name should not be empty." && exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $skelPath ]; then
|
||||
echo "Could not find skeleton directory." && exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $PROPOSALS ]; then
|
||||
echo "Could not find proposals directory." && exit 1
|
||||
fi
|
||||
|
||||
cp -R "$skelPath" "$PROPOSALS/$dirName"
|
||||
BIN
skeleton/hpa/Questions.numbers
Executable file
BIN
skeleton/hpa/Questions.numbers
Executable file
Binary file not shown.
BIN
skeleton/hpa/Report.pages
Executable file
BIN
skeleton/hpa/Report.pages
Executable file
Binary file not shown.
@@ -44,6 +44,7 @@ export WORK="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Work"
|
||||
export ZETDIR="$GHREPOS/zets"
|
||||
export MYZSHRC="$ZDOTDIR/.zshrc"
|
||||
export NAP_CONFIG="$HOME/.config/nap/config.yaml"
|
||||
export SKELETONDIR="$DOTFILES/skeleton"
|
||||
|
||||
# NPM
|
||||
export NPM_CONFIG_CACHE="$HOME/.local/npm"
|
||||
|
||||
Reference in New Issue
Block a user