CSV and TSV output should be independent + typos

This commit is contained in:
sickcodes 2021-03-09 11:30:16 +00:00
parent 51c8ab19f9
commit 5e2d228b63
2 changed files with 10 additions and 6 deletions

View file

@ -10,7 +10,7 @@ Author: Sick.Codes https://sick.codes/ & https://twitter.com/sickcodes
### Follow @sickcodes on Twitter for updates! [https://twitter.com/sickcodes](https://twitter.com/sickcodes)
Terms & Conditions: Serial numbers are an important part of conducting iMessage security research and finding vulnerabilities in software prior to Bad Actors, therefor, you must agree to [Apple's Security Bounty program](https://developer.apple.com/security-bounty/requirements/).
Terms & Conditions: Serial numbers are an important part of conducting iMessage security research and finding vulnerabilities in software prior to Bad Actors, therefore, you must agree to [Apple's Security Bounty program](https://developer.apple.com/security-bounty/requirements/).
### PR & Contributor Credits
@ -45,7 +45,7 @@ Used at runtime in [Docker-OSX](https://github.com/sickcodes/Docker-OSX).
# Requirements
```bash
# Ubuntu/Debian/Pop
# Ubuntu, Debian, Pop
sudo apt update -y
sudo apt install libguestfs-tools build-essential wget git linux-generic sudo -y

View file

@ -258,12 +258,16 @@ generate_serial_sets () {
if [ "${CSV_OUTPUT_FILENAME}" ]; then
[ "${CSV_OUTPUT_FILENAME}" ] && export CSV_SERIAL_SETS_FILE="${CSV_OUTPUT_FILENAME}"
elif [ "${TSV_OUTPUT_FILENAME}" ]; then
[ "${TSV_OUTPUT_FILENAME}" ] && export TSV_SERIAL_SETS_FILE="${TSV_OUTPUT_FILENAME}"
else
else
export CSV_SERIAL_SETS_FILE="${OUTPUT_DIRECTORY}/serial_sets-${DATE_NOW}.csv"
export TSV_SERIAL_SETS_FILE="${OUTPUT_DIRECTORY}/serial_sets-${DATE_NOW}.tsv"
fi
if [ "${TSV_OUTPUT_FILENAME}" ]; then
[ "${TSV_OUTPUT_FILENAME}" ] && export TSV_SERIAL_SETS_FILE="${TSV_OUTPUT_FILENAME}"
else
export TSV_SERIAL_SETS_FILE="${OUTPUT_DIRECTORY}/serial_sets-${DATE_NOW}.csv"
fi
./macserial \
--num "${SERIAL_SET_COUNT}" \