Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace code block by quotes to restore functionality #13

Closed

Conversation

nicerloop
Copy link
Contributor

No description provided.

@KNOXDEV
Copy link
Owner

KNOXDEV commented Feb 11, 2022

When built with quotes, the backup script errors when run on my computer.
image

Likewise, when I replace those quotes with the code block, it runs fine and as intended.
I'm running with Windows 10 default, Powershell version 5.1.19041.1320

@nicerloop
Copy link
Contributor Author

I observed just the opposite, that's why my initial PR used double quotes.
I checked using a clean vagrant box (https://app.vagrantup.com/gusztavvargadr/boxes/windows-10).

The backup-220211.ps1 script is produced by scoop-backup:
if (Get-Command -Name scoop -ErrorAction SilentlyContinue) {} else {iwr -useb get.scoop.sh | iex}
scoop install git
scoop bucket add knox https://github.com/KNOXDEV/knox-scoop
scoop bucket add main
scoop bucket add nicerloop https://github.com/nicerloop/scoop-nicerloop
scoop install main/7zip
scoop install main/git
scoop install knox/scoop-backup
scoop install main/sudo
scoop install main/sudo
sudo powershell -Command {
scoop install --global nicerloop/dotnetcore-desktopruntime-3.1-np
scoop install --global nicerloop/dotnetcore-desktopruntime-5.0-np
}

and produces:

...
WARN 'sudo' (0.2020.01.26) is already installed.
Use 'scoop update sudo' to install a new version.
Cannot process the command because of a missing parameter. A command must follow -Command.
...

It works with double quotes instead of code block.

@KNOXDEV
Copy link
Owner

KNOXDEV commented Feb 11, 2022

I see. Well, there must be an alternative syntax to both code blocks and double quotes that works on both of our setups.

Can you try an alternative?

@KNOXDEV
Copy link
Owner

KNOXDEV commented Feb 16, 2022

If #14 didn't resolve this issue for you, just reopen it.

Thanks again!

@KNOXDEV KNOXDEV closed this Feb 16, 2022
@nicerloop nicerloop deleted the replace-code-block-by-quotes branch February 28, 2022 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants