Closed DrBrad closed 2 years ago
Same issue. Resolved by explicitly calling bash, which resolved the error
bash ./repack.sh -m cab -f ../SurfaceLaptop4_Win10_18363_21.094.39212.0.msi -o out
@professor-rage ./ is to execute a shell script, it should run it fine, I will try that though
Depends on environment shell overrides. ./ used different shell in pop producing the error you shared. Explicitly calling with bash worked in my env.
@professor-rage ./ is to execute a shell script, it should run it fine, I will try that though
That is correct, and according to shebang in repack.sh
, it will run script under /bin/sh
Depends on environment shell overrides. ./ used different shell in pop producing the error you shared. Explicitly calling with bash worked in my env.
I suppose you both are using Debian, which, by default, is using dash
instead of bash
. dash
is installed in /bin/sh
.
When you call script with bash script
, it will force running under bash
instead of using shebang (#!/bin/sh
).
I just created push request with fixes from #21 which are resolving this issue be removing bashishms from repack.sh
. After fixes, it works under dash
too.
I keep getting that error.
Because of this when I list cab files or look for them manually they are not their, only a bin, cat, xml, and an inf file are there.