Merge pull request #898 from fewtarius/dev

Cleanup.
This commit is contained in:
fewtarius 2023-01-03 05:57:59 -05:00 committed by GitHub
commit 190214747e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View file

@ -21,13 +21,6 @@ set_online_cores() {
;;
esac
if (( "${1}" < 2 )) && \
[ "${MODE}" = "0" ]
then
echo "Invalid selection."
exit 1
fi
if [ "${CORES}" -gt 0 ]
then
for core in $(seq 0 1 ${1})

View file

@ -483,7 +483,7 @@ clear_screen
### Reset the number of cores to use.
NUMCORES=$(get_setting "system.cores")
if [ -z "${NUMCORES}" ]
if [ -n "${NUMCORES}" ]
then
onlinecores ${NUMCORES} 0
else