Skip to content

Commit

Permalink
Use real path of alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Carol Capek committed May 9, 2018
1 parent 998de7a commit 0dd506d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/format
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ initializeArrays() {
valueExtension[i]=${line#*= }
((i++))
fi
done <"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/conf/extension.cfg
done <"$( dirname $( greadlink -f ${BASH_SOURCE[0]} ) )"/conf/extension.cfg

local i=0
while read line; do
nameHash[i]=${line%% =*}
valueHash[i]=${line#*= }
((i++))
done <"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/conf/hashBang.cfg
done <"$( dirname $( greadlink -f ${BASH_SOURCE[0]} ) )"/conf/hashBang.cfg
}

# A two argument method that takes a file and creates a backup file
Expand Down Expand Up @@ -163,7 +163,7 @@ gitFormat() {
}

# location of this bash script
SCRIPT_LOCATION=$( echo "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")
SCRIPT_LOCATION=$( echo "$( dirname $( greadlink -f ${BASH_SOURCE[0]} ) )")

# Flags for the options
BACKUP=0
Expand Down

0 comments on commit 0dd506d

Please sign in to comment.