aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-28 17:29:27 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-28 17:29:27 +0000
commitef5b63b4b055c9525320e07a768885e2975fba71 (patch)
tree3857c4863f901a1e0f4bf8837e0ee720c28a9384
parentce2e2e8f241de6b51f9597cbc16892184630d75b (diff)
downloadtransfugdrake-ef5b63b4b055c9525320e07a768885e2975fba71.tar
transfugdrake-ef5b63b4b055c9525320e07a768885e2975fba71.tar.gz
transfugdrake-ef5b63b4b055c9525320e07a768885e2975fba71.tar.bz2
transfugdrake-ef5b63b4b055c9525320e07a768885e2975fba71.tar.xz
transfugdrake-ef5b63b4b055c9525320e07a768885e2975fba71.zip
do not try to list windows users if no windows disk is detected
-rwxr-xr-xtransfugdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/transfugdrake b/transfugdrake
index 4d8e423..055e5ee 100755
--- a/transfugdrake
+++ b/transfugdrake
@@ -14,7 +14,8 @@ use transfugdrake;
my %distrib = distrib();
my $windows_disk = transfugdrake::get_windows_disk();
my @linux_users = list_users();
-my @windows_users = transfugdrake::list_windows_users($windows_disk);
+my @windows_users;
+@windows_users = transfugdrake::list_windows_users($windows_disk) if $windows_disk;
my @windows_items;
my $linux_user;