mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Get rid of basically useless expand-path helper
This commit is contained in:
15
bin/dotify
15
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"
|
||||
|
||||
@@ -32,7 +32,6 @@ set -e
|
||||
|
||||
source "../lib/arguments.sh"
|
||||
source "../lib/trim.sh"
|
||||
source "../lib/expand-path.sh"
|
||||
|
||||
#
|
||||
# Internal functions
|
||||
|
||||
@@ -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 "$@")
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user