-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fscherwi
authored and
fscherwi
committed
Dec 31, 2015
1 parent
c735b1a
commit aed2cbb
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
var osx_version = require('./main.js').get(); | ||
if (process.platform === 'darwin') { | ||
console.log('\nOSX version: %s\n', osx_version); | ||
} else { | ||
var osx_version = require('./main.js').get(); /* istanbul ignore next */ | ||
if (process.platform !== 'darwin') { | ||
if (osx_version !== 'no OSX system') { | ||
console.log('ERROR'); | ||
process.exit(1); | ||
} else { | ||
console.log('\nOSX version: %s\n', osx_version); | ||
} | ||
} | ||
console.log('\nOSX version: %s\n', osx_version); |