mirror of
https://github.com/SuperBFG7/ympd
synced 2025-04-13 06:13:15 +00:00
Fix: small cleanups
This commit is contained in:
parent
27967c072a
commit
08acd687b7
@ -16,7 +16,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand navbar-dark fixed-top bg-dark">
|
||||
<a class="navbar-brand" data-toggle="dropdown" href="#">
|
||||
<a class="navbar-brand" href="#">
|
||||
<span class="material-icons header-logo">play_circle_outline</span>myMPD
|
||||
</a>
|
||||
</nav>
|
||||
|
@ -1560,8 +1560,8 @@ int mympd_syscmd(char *buffer, char *cmd, int order) {
|
||||
if (read > 0) {
|
||||
strtok(line, "\n");
|
||||
if (system(line) == 0) {
|
||||
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Executed cmd %s.\"}", line);
|
||||
LOG_VERBOSE() printf("Executed syscmd \"%s\"\n", line);
|
||||
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Executed cmd %s.\"}", cmd);
|
||||
LOG_VERBOSE() printf("Executed syscmd: \"%s\"\n", line);
|
||||
}
|
||||
else {
|
||||
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"error\", \"data\": \"Executing cmd %s failed.\"}", cmd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user