Scoop: extract_dir Variable substitution

Created on 17 May 2018  路  2Comments  路  Source: lukesampson/scoop

While using variable substitution in extract_dir Robust File Copy On Windows Error occured.

Should variable substitution work inside extract_dir?
Am I missing something?

"version" : "1.0",
"extract_dir": "zipfileincluding$versionfolder"
Extracting... Error moving directory:
 -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust File Copy for Windows
-------------------------------------------------------------------------------    Started : 17 May, 2018 2:34:30 PM    Source :
S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\      Dest : S:\Scoop\apps\Repo\1.1\      Files : *.*           Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE /R:1000000
/W:30   ------------------------------------------------------------------------------  2018/05/17 14:34:30 ERROR 2 (0x00000002) Accessing Source Directory
S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\ The system cannot find the file specified.
At S:\Scoop\apps\scoop\current\lib\core.ps1:249 char:9
+         throw "Error moving directory: `n$out"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error moving di...ile specified. :String) [], RuntimeException
    + FullyQualifiedErrorId : Error moving directory:
     -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust File Copy for Windows                               ------------------------
   -------------------------------------------------------    Started : 17 May, 2018 2:34:30 PM    Source : S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\      Dest : S:\S
  coop\apps\Repo\1.1\      Files : *.*           Options : *.* /S /E /DCOPY:DA /COPY:DAT /MOVE /R:1000000 /W:30   -----------------------------------------------------------------------

 -------  2018/05/17 14:34:30 ERROR 2 (0x00000002) Accessing Source Directory S:\Scoop\apps\Repo\1.1\_tmp\repo_extended_v$version\ The system cannot find the file specified.

Most helpful comment

Thank you for fast response :)

All 2 comments

This only works when the extract_dir is a child of autoupdate. The substitution happens only on an update.

Thank you for fast response :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunovieira97 picture brunovieira97  路  3Comments

nitrocode picture nitrocode  路  3Comments

thorstenkampe picture thorstenkampe  路  3Comments

mpro7 picture mpro7  路  3Comments

borekb picture borekb  路  3Comments