chore: add utility files
This commit is contained in:
parent
2652d719a9
commit
9892f969cd
4 changed files with 26 additions and 0 deletions
2
util/i.cmd
Normal file
2
util/i.cmd
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
@echo off
|
||||||
|
Powershell Start -Verb runAs powershell -ArgumentList '-ExecutionPolicy Bypass -NoExit Set-Location %cd%; .\instalee\i.ps1'
|
BIN
util/i.lnk
Normal file
BIN
util/i.lnk
Normal file
Binary file not shown.
19
util/issues.md
Normal file
19
util/issues.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
https://superuser.com/questions/55809/how-to-run-program-from-command-line-with-elevated-rights
|
||||||
|
|
||||||
|
- auto-elevation of choco
|
||||||
|
- post-choco-install check if launching git bash works
|
||||||
|
- add choco to handlers
|
||||||
|
|
||||||
|
Set-Location : Illegales Zeichen im Pfad.
|
||||||
|
In K:\instalee\packages\chocolatey\powershell.ps1:24 Zeichen:5
|
||||||
|
+ Set-Location $Loc.Substring(1,$Loc.Length-1)
|
||||||
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
+ CategoryInfo : InvalidArgument: (K:\instalee":String) [Set-Location], ArgumentException
|
||||||
|
+ FullyQualifiedErrorId : ItemExistsArgumentError,Microsoft.PowerShell.Commands.SetLocationCommand
|
||||||
|
|
||||||
|
Set-Location : Der Pfad "K:\instalee"" kann nicht gefunden werden, da er nicht vorhanden ist.
|
||||||
|
In K:\instalee\packages\chocolatey\powershell.ps1:24 Zeichen:5
|
||||||
|
+ Set-Location $Loc.Substring(1,$Loc.Length-1)
|
||||||
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
+ CategoryInfo : ObjectNotFound: (K:\instalee":String) [Set-Location], ItemNotFoundException
|
||||||
|
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
|
5
util/work.sh
Normal file
5
util/work.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
echo "
|
||||||
|
sudo umount -l "$(dirname "$0")" &&
|
||||||
|
sudo mount -o uid=1000,gid=1000,umask=0000 -L PEARL /mnt &&
|
||||||
|
/mnt/instalee/instalee --noexec work" >/tmp/remount.sh
|
||||||
|
exec sh /tmp/remount.sh
|
Loading…
Add table
Reference in a new issue