diff --git a/bin/dotify b/bin/dotify index febca99..4ddba78 100755 --- a/bin/dotify +++ b/bin/dotify @@ -111,19 +111,6 @@ trim() { echo -n "$string" } -# Expands given path. -# -# Example: -# -# $ expand-path "~/Projects" -# /Users/jimeh/Projects -# $ expand-path "config/*.json" -# config/application.json config/database.yml -# -expand-path() { - echo $(eval echo "$@") -} - # # Internal functions @@ -236,7 +223,7 @@ parse-dotfile-line() { } include-dotfile() { - local dotfile="$(expand-path "$1")" + local dotfile="$1" local target="$2" local rootdir="$3" local rootlink="$4" diff --git a/src/bin/dotify b/src/bin/dotify index 198db98..35e9432 100755 --- a/src/bin/dotify +++ b/src/bin/dotify @@ -32,7 +32,6 @@ set -e source "../lib/arguments.sh" source "../lib/trim.sh" -source "../lib/expand-path.sh" # # Internal functions diff --git a/src/lib/expand-path.sh b/src/lib/expand-path.sh deleted file mode 100644 index 6963de4..0000000 --- a/src/lib/expand-path.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Expands given path. -# -# Example: -# -# $ expand-path "~/Projects" -# /Users/jimeh/Projects -# $ expand-path "config/*.json" -# config/application.json config/database.yml -# -expand-path() { - echo $(eval echo "$@") -} diff --git a/src/lib/internals.sh b/src/lib/internals.sh index 1dce21b..b608ff6 100644 --- a/src/lib/internals.sh +++ b/src/lib/internals.sh @@ -105,7 +105,7 @@ parse-dotfile-line() { } include-dotfile() { - local dotfile="$(expand-path "$1")" + local dotfile="$1" local target="$2" local rootdir="$3" local rootlink="$4"