]> git.proxmox.com Git - pve-container.git/blobdiff - src/lxc-pve-prestart-hook
fix some warnings shown during 'make dinstall'
[pve-container.git] / src / lxc-pve-prestart-hook
index 4de47c9858f417aa143f8b58a32bc62994a92da8..04caff3d63d81d114db682d0547f2b254093319f 100755 (executable)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-exit 0 if $ENV{'LXC_NAME'} !~ /^\d+$/;
+exit 0 if $ENV{LXC_NAME} && $ENV{LXC_NAME} !~ /^\d+$/;
 
 use POSIX;
 use File::Path;