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

Add missing -command argument in powershell call #1909

Merged
merged 4 commits into from
Nov 9, 2024

Conversation

MagicalDrizzle
Copy link
Contributor

it seems like at least with powershell core - you need the -command argument passed to powershell to execute a built-in function.
currently, the backup filename is not prefs-backup-(date/time).js but prefs-backup-All parameters are case-insensitive.js, because this is the output of the powershell command

The argument 'get-date' is not recognized as the name of a script file. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
...
All parameters are case-insensitive.

Copy link

@strotee strotee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pro tip: -command allows one to shorten it by writing -c.

Edit: Same thing with -format can be written as -f.

@earthlng earthlng merged commit eae5762 into arkenfox:master Nov 9, 2024
@earthlng
Copy link
Contributor

earthlng commented Nov 9, 2024

thanks @MagicalDrizzle

github-actions bot pushed a commit to ComixHe/user.js that referenced this pull request Nov 10, 2024
* updater: add missing PowerShell argument

* prefcleaner: add missing PowerShell argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants