Tech-Byte-Tips / RPi-PXE

Turn any Raspberry Pi into a PXE Server!
44 stars 6 forks source link

RPi-PXE.sh: line 390: [: too many arguments #2

Closed MisterDeeds closed 10 months ago

MisterDeeds commented 1 year ago

Dear PREngineer

Thanks alot for the awesome script and your work!

Under "Provision a new Pi using an image" I get the following message at the end:

RPi-PXE.sh: line 390: [: too many arguments

I use the following Bash version:

echo "${BASH_VERSION}"
5.2.15(1)-release

image

I was able to fix it by replacing -or with ||.

if [ $RESTRICT == 'y' ] || [ $RESTRICT == 'Y' ]; then

image

Thanks again and best regards

PREngineer commented 10 months ago

Hey @MisterDeeds,

Weird, I don't get that error. I'll use that for the latest update. I'm currently working on a fix for the latest OS not working because of changes in the boot files.

Thanks.

PREngineer commented 10 months ago

Closing this Issue as I've updated line 390 to use the "||" operator.