mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new: custom cmds (#313)
This commit is contained in:
@@ -99,7 +99,7 @@ class ContainerProvider extends ChangeNotifier {
|
||||
}
|
||||
|
||||
// Check result segments count
|
||||
final segments = raw.split(seperator);
|
||||
final segments = raw.split(ShellFunc.seperator);
|
||||
if (segments.length != ContainerCmdType.values.length) {
|
||||
error = ContainerErr(
|
||||
type: ContainerErrType.segmentsNotMatch,
|
||||
@@ -270,6 +270,6 @@ enum ContainerCmdType {
|
||||
}) {
|
||||
return ContainerCmdType.values
|
||||
.map((e) => e.exec(type, sudo: sudo, includeStats: includeStats))
|
||||
.join(' && echo $seperator && ');
|
||||
.join(' && echo ${ShellFunc.seperator} && ');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user