Skip to content

Commit eae5762

Browse files
Add missing -command argument in powershell call (#1909)
* updater: add missing PowerShell argument * prefcleaner: add missing PowerShell argument
1 parent c6cfa10 commit eae5762

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

prefsCleaner.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TITLE prefs.js cleaner
33

44
REM ### prefs.js cleaner for Windows
55
REM ## author: @claustromaniac
6-
REM ## version: 2.7
6+
REM ## version: 2.8
77

88
CD /D "%~dp0"
99

@@ -15,7 +15,7 @@ ECHO:
1515
ECHO ########################################
1616
ECHO #### prefs.js cleaner for Windows ####
1717
ECHO #### by claustromaniac ####
18-
ECHO #### v2.7 ####
18+
ECHO #### v2.8 ####
1919
ECHO ########################################
2020
ECHO:
2121
CALL :message "This script should be run from your Firefox profile directory."
@@ -37,7 +37,7 @@ CALL :strlenCheck
3737
CALL :FFcheck
3838

3939
CALL :message "Backing up prefs.js..."
40-
FOR /F "delims=" %%# IN ('powershell get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
40+
FOR /F "delims=" %%# IN ('powershell -command get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
4141
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
4242

4343
CALL :message "Cleaning prefs.js..."

updater.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TITLE arkenfox user.js updater
33

44
REM ## arkenfox user.js updater for Windows
55
REM ## author: @claustromaniac
6-
REM ## version: 4.19
6+
REM ## version: 4.20
77
REM ## instructions: https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-windows
88

99
SET v=4.19
@@ -177,7 +177,7 @@ IF EXIST user.js.new (
177177
IF DEFINED _singlebackup (
178178
MOVE /Y user.js user.js.bak >nul
179179
) ELSE (
180-
FOR /F "delims=" %%# IN ('powershell get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
180+
FOR /F "delims=" %%# IN ('powershell -command get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
181181
MOVE /Y user.js "user-backup-!ldt!.js" >nul
182182
)
183183
REN user.js.new user.js

0 commit comments

Comments
 (0)