mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2025-01-07 18:47:44 +01:00
Merge branch 'master' of https://github.com/corpnewt/gibMacOS
This commit is contained in:
commit
5629ebe7bb
@ -1,9 +1,10 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal enableDelayedExpansion
|
REM Get our local path before delayed expansion - allows ! in path
|
||||||
|
set "thisDir=%~dp0"
|
||||||
|
|
||||||
|
setlocal enableDelayedExpansion
|
||||||
REM Setup initial vars
|
REM Setup initial vars
|
||||||
set "script_name="
|
set "script_name="
|
||||||
set "thisDir=%~dp0"
|
|
||||||
set /a tried=0
|
set /a tried=0
|
||||||
set "toask=yes"
|
set "toask=yes"
|
||||||
set "pause_on_error=yes"
|
set "pause_on_error=yes"
|
||||||
|
@ -33,7 +33,7 @@ class Utils:
|
|||||||
if self.check_admin():
|
if self.check_admin():
|
||||||
return
|
return
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, file, None, 1)
|
ctypes.windll.shell32.ShellExecuteW(None, "runas", '"{}"'.format(sys.executable), '"{}"'.format(file), None, 1)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
p = subprocess.Popen(["which", "sudo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
p = subprocess.Popen(["which", "sudo"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal enableDelayedExpansion
|
REM Get our local path before delayed expansion - allows ! in path
|
||||||
|
set "thisDir=%~dp0"
|
||||||
|
|
||||||
|
setlocal enableDelayedExpansion
|
||||||
REM Setup initial vars
|
REM Setup initial vars
|
||||||
set "script_name="
|
set "script_name="
|
||||||
set "thisDir=%~dp0"
|
|
||||||
set /a tried=0
|
set /a tried=0
|
||||||
set "toask=yes"
|
set "toask=yes"
|
||||||
set "pause_on_error=yes"
|
set "pause_on_error=yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user