mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-30 21:33:00 +00:00 
			
		
		
		
	Fix: small cleanups
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation