fixed move function in deploy.sh
This commit is contained in:
parent
391b85bea5
commit
bcaffe612c
16
deploy.sh
16
deploy.sh
@ -63,7 +63,7 @@ _bashrc_ref() {
|
|||||||
|
|
||||||
_move() {
|
_move() {
|
||||||
_delete
|
_delete
|
||||||
_bashrc_ref
|
_bashrc_ref "${FANCYFY}"
|
||||||
}
|
}
|
||||||
|
|
||||||
_main() {
|
_main() {
|
||||||
@ -73,9 +73,17 @@ _main() {
|
|||||||
_delete
|
_delete
|
||||||
echo "removed custom configs"
|
echo "removed custom configs"
|
||||||
elif [ "${MOVE}" = true ]; then
|
elif [ "${MOVE}" = true ]; then
|
||||||
_move
|
if [ "${PRESENT}" = false ]; then
|
||||||
echo "moved custom config directory to ${THIS}"
|
_bashrc_ref "${FANCYFY}"
|
||||||
echo
|
echo "unable to move to current directory"
|
||||||
|
echo "bash overrides not previously present"
|
||||||
|
echo "adding bash overrides..."
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
_move
|
||||||
|
echo "moved custom config directory to ${THIS}"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
elif [ "${PRESENT}" = true ]; then
|
elif [ "${PRESENT}" = true ]; then
|
||||||
if [ "${CURRENT_FANCYFY}" != "${FANCYFY}" ]; then
|
if [ "${CURRENT_FANCYFY}" != "${FANCYFY}" ]; then
|
||||||
sed -i "s/TERMINAL_FANCYFY=${CURRENT_FANCYFY}/TERMINAL_FANCYFY=${FANCYFY}/" ~/.bashrc
|
sed -i "s/TERMINAL_FANCYFY=${CURRENT_FANCYFY}/TERMINAL_FANCYFY=${FANCYFY}/" ~/.bashrc
|
||||||
|
Loading…
Reference in New Issue
Block a user