Get rid of basically useless expand-path helper

This commit is contained in:
2013-06-27 00:12:37 +02:00
parent 67ea4f487b
commit 2e9bd7ce53
4 changed files with 2 additions and 28 deletions

View File

@@ -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"

View File

@@ -32,7 +32,6 @@ set -e
source "../lib/arguments.sh"
source "../lib/trim.sh"
source "../lib/expand-path.sh"
#
# Internal functions

View File

@@ -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 "$@")
}

View File

@@ -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"