|
@ -15,7 +15,7 @@ readonly ORIGINAL="ORIGINAL" |
|
|
declare -a arr=(/etc/bash.bashrc /etc/inputrc /etc/vim/vimrc) |
|
|
declare -a arr=(/etc/bash.bashrc /etc/inputrc /etc/vim/vimrc) |
|
|
|
|
|
|
|
|
for i in "${arr[@]}"; do |
|
|
for i in "${arr[@]}"; do |
|
|
if [ ! -f "$i.$ORIGINAL" ]; then |
|
|
|
|
|
|
|
|
if [[ -f "$i" ]] && [[ ! -f "$i.$ORIGINAL" ]]; then |
|
|
mv "$i" "$i.$ORIGINAL" |
|
|
mv "$i" "$i.$ORIGINAL" |
|
|
basefile=$(basename "$i") |
|
|
basefile=$(basename "$i") |
|
|
ln -s "$MIAOU_BASH_DIR/$basefile" "$i" |
|
|
ln -s "$MIAOU_BASH_DIR/$basefile" "$i" |
|
|