mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-11-23 20:38:16 +08:00
@@ -89,7 +89,7 @@ setup_color() {
|
||||
}
|
||||
# END of color settings
|
||||
|
||||
dotfile_path=$(cd $(dirname $0); pwd)
|
||||
dotfile_path=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
|
||||
home_slashes=${HOME//\//\\\/}
|
||||
if [[ ! $dotfile_path == ${home_slashes}* ]]; then
|
||||
fmt_fatal "\"$dotfile_path\" is not under \"$HOME\". aborting ..."
|
||||
|
||||
Reference in New Issue
Block a user