Skip to content

Commit

Permalink
webui/js: simplify updateStatusFromModuleProp command
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashxx committed Dec 17, 2024
1 parent 3ee3392 commit 4f9f6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/webroot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async function checkCronStatus() {
// Function to get the status from module.prop and update the status in the WebUI
async function updateStatusFromModuleProp() {
try {
const command = "grep '^description=' /data/adb/modules/bindhosts/module.prop | cut -d'=' -f2 | sed 's/status: //'";
const command = "grep '^description=' /data/adb/modules/bindhosts/module.prop | sed 's/description=status: //'";
const description = await execCommand(command);
updateStatus(description.trim());
} catch (error) {
Expand Down

0 comments on commit 4f9f6ca

Please sign in to comment.