Add mkdir -p for config file directory creation.
This commit is contained in:
parent
b27b59077c
commit
9a181aa6e5
@ -8,6 +8,7 @@ declare -A dots
|
|||||||
dots["gitignore"]="$HOME/.gitignore"
|
dots["gitignore"]="$HOME/.gitignore"
|
||||||
dots["vimrc"]="$HOME/.vimrc"
|
dots["vimrc"]="$HOME/.vimrc"
|
||||||
dots["zshrc"]="$HOME/.zshrc"
|
dots["zshrc"]="$HOME/.zshrc"
|
||||||
|
dots["terminator"]="$HOME/.config/terminator/config"
|
||||||
|
|
||||||
for key in "${!dots[@]}"; do
|
for key in "${!dots[@]}"; do
|
||||||
value="${dots[$key]}"
|
value="${dots[$key]}"
|
||||||
@ -16,6 +17,7 @@ for key in "${!dots[@]}"; do
|
|||||||
if [ -a "$value" ]; then
|
if [ -a "$value" ]; then
|
||||||
echo -e "${CYELLOW}skip${CNONE}"
|
echo -e "${CYELLOW}skip${CNONE}"
|
||||||
else
|
else
|
||||||
|
mkdir -p $(dirname $value)
|
||||||
ln -s $(pwd)/"$key" $value
|
ln -s $(pwd)/"$key" $value
|
||||||
echo -e "${CGREEN}ok${CNONE}"
|
echo -e "${CGREEN}ok${CNONE}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user