Skip to content

Commit

Permalink
address github issue 217
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyrui committed Jan 8, 2023
1 parent 6d34f14 commit 5970a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenSprinkler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ void OpenSprinkler::reboot_dev(uint8_t cause) {
/** Launch update script */
void OpenSprinkler::update_dev() {
char cmd[1000];
sprintf(cmd, "cd %s & ./updater.sh", get_runtime_path());
sprintf(cmd, "cd %s && ./updater.sh", get_runtime_path());
system(cmd);
}
#endif // end network init functions
Expand Down

0 comments on commit 5970a3a

Please sign in to comment.