sickcodes / osx-serial-generator

Mac Serial Generator - Generate complete sets of Serial Numbers for OSX-KVM, Docker-OSX and of course, OpenCore.
GNU General Public License v3.0
1.61k stars 159 forks source link

Running the script spits out an error #6

Closed IvanIVGrozny closed 3 years ago

IvanIVGrozny commented 3 years ago

When the script is used, it throws out an error. macOS High Sierra 10.13.6

iMac-2:osx-serial-generator-master sigjnf3$ sudo ./generate-unique-machine-values.sh     -c 1     --model="MacPro6,1"
Password:
DEVICE_MODEL:       MacPro6,1
SERIAL_SET_COUNT:   1
OUTPUT_DIRECTORY:   .
cp: the -R and -r options may not be specified together.
sickcodes commented 3 years ago

sudo /bin/bash ./generate-unique-machine-values.sh -c 1 --model="MacPro6,1"

And if that doesn't work, use bash5 (brew install bash)

I was unaware cp was different in macOS

sickcodes commented 3 years ago

Fixing this

sickcodes commented 3 years ago
user@10 osx-serial-generator % ./generate-unique-machine-values.sh     -c 1     --model="MacPro6,1"
DEVICE_MODEL:       MacPro6,1
SERIAL_SET_COUNT:   1
OUTPUT_DIRECTORY:   .
"MacPro6,1","F5KNLHY5F9VM","F5K443270J9FHDDJC","8BBB8C15-C08B-4407-9150-A854C1E87A57","34:C0:59:DA:44:0F","1920","1080"
Wrote CSV to: ./serial_sets-2021-03-22-12:05:26.csv
MacPro6,1   F5KNLHY5F9VM    F5K443270J9FHDDJC   8BBB8C15-C08B-4407-9150-A854C1E87A57    34:C0:59:DA:44:0F   1920    1080
Wrote TSV to: ./serial_sets-2021-03-22-12:05:26.tsv
DEVICE_MODEL,SERIAL,BOARD_SERIAL,UUID,MAC_ADDRESS,WIDTH,HEIGHT
"MacPro6,1","F5KNLHY5F9VM","F5K443270J9FHDDJC","8BBB8C15-C08B-4407-9150-A854C1E87A57","34:C0:59:DA:44:0F","1920","1080"
DEVICE_MODEL    SERIAL  BOARD_SERIAL    UUID    MAC_ADDRESS WIDTH   HEIGHT
MacPro6,1   F5KNLHY5F9VM    F5K443270J9FHDDJC   8BBB8C15-C08B-4407-9150-A854C1E87A57    34:C0:59:DA:44:0F   1920    1080