Error checking

This commit is contained in:
Squidly271
2018-11-04 12:28:14 -05:00
committed by GitHub
parent fdcec51380
commit d82fad5cd4

View File

@@ -28,7 +28,7 @@ function exert($cmd, &$save=null) {
return implode("\n",$save);
}
function shareDisks($share) {
return exec("shopt -s dotglob; getfattr --no-dereference --absolute-names --only-values -n system.LOCATIONS ".escapeshellarg("/usr/local/emhttp/mnt/user/$share")." 2>&1");
return exec("shopt -s dotglob; getfattr --no-dereference --absolute-names --only-values -n system.LOCATIONS ".escapeshellarg("/usr/local/emhttp/mnt/user/$share")." 2>/dev/null") ?: "no drives";
}
function anonymize($text,$select) {