nl_tokens: Checks for ldconfig on the path and / sbin
pl_tokens: function hasLdconfig ( ) { <mask> { // Add /sbin to path as ldconfig is located there on some systems -- e.g. // Debian (and it can still be used by unprivileged users): childProcess . execSync ( 'export PATH="$PATH:/sbin"' ) process . env . PATH = '...' // execSync throws on nonzero exit childProcess . execSync ( 'hash ldconfig 2>/dev/null' ) return true } catch ( err ) { return false } }