mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:46:40 +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)
|
||||
|
||||
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user