mirror of
https://github.com/unraid/webgui.git
synced 2026-03-18 10:53:09 -05:00
Error checking
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user