@@ -104,7 +104,7 @@ function Find-Manifest($app, $bucket) {
104104}
105105
106106function dl_with_cache ($app , $version , $url , $to , $cookies = $null , $use_cache = $true ) {
107- $cached = fullpath ( cache_path $app $version $url )
107+ $cached = cache_path $app $version $url
108108
109109 if (! (test-path $cached ) -or ! $use_cache ) {
110110 ensure $cachedir | Out-Null
@@ -254,7 +254,7 @@ function dl_with_cache_aria2($app, $version, $manifest, $architecture, $dir, $co
254254 ' filename' = url_filename $url
255255 ' target' = " $dir \$ ( url_filename $url ) "
256256 ' cachename' = fname (cache_path $app $version $url )
257- ' source' = fullpath ( cache_path $app $version $url )
257+ ' source' = cache_path $app $version $url
258258 }
259259
260260 if (! (test-path $data .$url.source )) {
@@ -575,8 +575,6 @@ function cookie_header($cookies) {
575575}
576576
577577function is_in_dir ($dir , $check ) {
578- $check = " $ ( fullpath $check ) "
579- $dir = " $ ( fullpath $dir ) "
580578 $check -match " ^$ ( [regex ]::escape(" $dir " )) (\\|`$ )"
581579}
582580
@@ -602,7 +600,6 @@ function hash_for_url($manifest, $url, $arch) {
602600
603601# returns (ok, err)
604602function check_hash ($file , $hash , $app_name ) {
605- $file = fullpath $file
606603 if (! $hash ) {
607604 warn " Warning: No hash in manifest. SHA256 for '$ ( fname $file ) ' is:`n $ ( compute_hash $file ' sha256' ) "
608605 return $true , $null
@@ -942,7 +939,6 @@ function env_add_path($manifest, $dir, $global) {
942939}
943940
944941function add_first_in_path ($dir , $global ) {
945- $dir = fullpath $dir
946942
947943 # future sessions
948944 $null , $currpath = strip_path (env ' path' $global ) $dir
@@ -1097,8 +1093,8 @@ function persist_data($manifest, $original_dir, $persist_dir) {
10971093
10981094 $source = $source.TrimEnd (" /" ).TrimEnd(" \\" )
10991095
1100- $source = fullpath " $dir \$source "
1101- $target = fullpath " $persist_dir \$target "
1096+ $source = " $dir \$source "
1097+ $target = " $persist_dir \$target "
11021098
11031099 # if we have had persist data in the store, just create link and go
11041100 if (Test-Path $target ) {
0 commit comments