Skip to content

Commit

Permalink
allow calling of scoop-portable subroutines
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Mar 31, 2023
1 parent ed52dc0 commit 21bfb27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scoop-portable.cmd
Expand Up @@ -107,6 +107,12 @@ call :log_SUCCESS The portable scoop environment is ready.
:: if scoop portable was launched with arguments, execute the arguments
:: ==========================================================================
if not "%~1" == "" (
setlocal EnableDelayedExpansion
set "first_arg=%~1"
if "!first_arg:~0,1!" == ":" (
call %*
goto :eof
)
cmd /C %*
goto :eof
)
Expand Down

0 comments on commit 21bfb27

Please sign in to comment.