File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- 1.3.9
1+ 1.3.10
Original file line number Diff line number Diff line change @@ -362,7 +362,9 @@ function tue-install-git
362362 do
363363 case $i in
364364 --target-dir=* )
365- targetdir=" ${i#* =} " ;;
365+ targetdir=" ${i#* =} "
366+ targetdir=" ${targetdir/# \~ / $HOME } "
367+ ;;
366368 --version=* )
367369 version=" ${i#* =} " ;;
368370 * )
@@ -376,6 +378,7 @@ function tue-install-git
376378 tue-install-error " Target directory path cannot be empty"
377379 fi
378380
381+ local res
379382 if [ ! -d " $targetdir " ]
380383 then
381384 tue-install-debug " git clone --recursive $repo $targetdir "
@@ -401,7 +404,6 @@ function tue-install-git
401404 tue-install-info " URL has switched to $repo "
402405 fi
403406
404- local res
405407 tue-install-debug " git -C $targetdir pull --ff-only --prune"
406408 res=$( git -C " $targetdir " pull --ff-only --prune 2>&1 )
407409 tue-install-debug " res: $res "
You can’t perform that action at this time.
0 commit comments