Skip to content

Commit

Permalink
now adds a .aplot file that tracks alias of origin dir in autoplotter…
Browse files Browse the repository at this point in the history
… dir
  • Loading branch information
jkguiang committed Jul 10, 2018
1 parent 5baf2db commit beba5de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aplot
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ if [[ -e ${1} ]] ; then
to_orig=$(cd "$(dirname "$1")"; pwd -P)
targ=$(basename ${1})
orig=${to_orig}/${targ}
if [[ -e ${1}/.aplot ]] ; then
targ=$(cat ${1}/.aplot)
fi
if [[ ${2} ]] ; then
touch ${1}/.aplot
echo ${2} > ${1}/.aplot
targ=${2}
fi
if [[ ! -e ${html}/autoplotter ]] ; then
Expand Down

0 comments on commit beba5de

Please # to comment.