|
|
@ -2152,9 +2152,9 @@ static struct cmd_results *cmd_set(int argc, char **argv) {
|
|
|
|
return error;
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (argv[0][0] != '$') {
|
|
|
|
if (argv[0][0] != '$') {
|
|
|
|
return cmd_results_new(CMD_FAILURE, "set", "Malformed variable assignment, name has to start with $");
|
|
|
|
return cmd_results_new(CMD_FAILURE, "set", "Malformed variable assignment, name has to start with $");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
struct sway_variable *var = NULL;
|
|
|
|
struct sway_variable *var = NULL;
|
|
|
|
// Find old variable if it exists
|
|
|
|
// Find old variable if it exists
|
|
|
|