Fix issue with names containing dashes

This commit is contained in:
Jose
2020-01-04 14:55:48 -04:00
parent 9abe9cd0e3
commit 63ada5a8c3
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -3,6 +3,7 @@
====================== ======================
Version Description Version Description
1.0.31......Fix issue with names containing dashes.
1.0.30......Ability to convert thin jail to thick jail. 1.0.30......Ability to convert thin jail to thick jail.
1.0.29......Added Chinese (Simplified) translation, thanks to lijinbiao. 1.0.29......Added Chinese (Simplified) translation, thanks to lijinbiao.
1.0.28......Improve fstab utility error handling. 1.0.28......Improve fstab utility error handling.
+1 -1
View File
@@ -167,7 +167,7 @@ function get_jail_infos() {
// Set the JID on the running jails. // Set the JID on the running jails.
$item = $r['jailname']; $item = $r['jailname'];
$r['id'] = exec("/usr/sbin/jls | /usr/bin/grep {$item} | /usr/bin/awk '{print $1}'"); $r['id'] = exec("/usr/sbin/jls | /usr/bin/awk '/{$item}\ /{print $1}'");
if (!$r['id']): if (!$r['id']):
$r['id'] = "-"; $r['id'] = "-";
endif; endif;
+1 -1
View File
@@ -1 +1 @@
1.0.30 1.0.31