Closed Alchemi1963 closed 3 months ago
I will just test this on my machine and report back
I will just test this on my machine and report back
I have another fix also... I did not made any MR but here is my diff: installer.PATCH
It's still not perfect... I have the same problem than #111 and #110 (this one I simply removed the check as you see)
I have a fix for the printf problem, gonna commit that rq
I will just test this on my machine and report back
I have another fix also... I did not made any MR but here is my diff: installer.PATCH
It's still not perfect... I have the same problem than #111 and #110 (this one I simply removed the check as you see)
I see you did mostly the same things and had the same issue as I in #109 :) I did that too, but didn't commit it as the devs specifically made a commit a while back about preferring system icons instead (idk why but ok)
I have a fix for the printf problem, gonna commit that rq
Out of curiosity, what is that fix?
@Alchemi1963
If you run a printf like
printf "%s\n" 'powershell.exe -ExecutionPolicy Bypass -File \\tsclient\home\.local\share\\winapps\ExtractPrograms.ps1 > \\tsclient\home\.local\share\winapps\detected'
with the argument containing backslashes in single quotes and have a first argument in double quotes then the backslashes will be interpreted literally
No more double or triple escaping
@Alchemi1963
If you run a printf like
printf "%s\n" 'powershell.exe -ExecutionPolicy Bypass -File \\tsclient\home\.local\share\\winapps\ExtractPrograms.ps1 > \\tsclient\home\.local\share\winapps\detected'
with the argument containing backslashes in single quotes and have a first argument in double quotes then the backslashes will be interpreted literally
Oh yeah, that is much cleaner
This PR allows allows installer.sh to complete successfully for me. No more RDP connection error message.
pre-commit.ci autofix
We only need to fix shellcheck, before merging.
Rewrote the printf lines to work nice with writing the batch script. Rewrote the apps scanner to take relative paths (with ls) for more consistent results across Added checks for emtpy vars so bin aren't accidentally written to or deleted.