mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Reorganize install.sh slightly
This commit is contained in:
29
install.sh
29
install.sh
@@ -30,6 +30,21 @@ SYMLINKS=(
|
|||||||
)
|
)
|
||||||
LOAD_FILES=(profile zshrc)
|
LOAD_FILES=(profile zshrc)
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Initial Setup
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ -n "${BASH_SOURCE[0]}" ] && [ -f "${BASH_SOURCE[0]}" ] ; then
|
||||||
|
ROOT_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
elif [ -n "$0" ] && [ -f "$0" ]; then
|
||||||
|
ROOT_PATH=$(cd "$(dirname "$0")" && pwd)
|
||||||
|
else
|
||||||
|
echo "[ERROR] Can't determine dotfiles' root path."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Main Functions
|
# Main Functions
|
||||||
#
|
#
|
||||||
@@ -97,20 +112,6 @@ install_dokku() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Initial Setup
|
|
||||||
#
|
|
||||||
|
|
||||||
if [ -n "${BASH_SOURCE[0]}" ] && [ -f "${BASH_SOURCE[0]}" ] ; then
|
|
||||||
ROOT_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
||||||
elif [ -n "$0" ] && [ -f "$0" ]; then
|
|
||||||
ROOT_PATH=$(cd "$(dirname "$0")" && pwd)
|
|
||||||
else
|
|
||||||
echo "[ERROR] Can't determine dotfiles' root path."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Helper functions
|
# Helper functions
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user