Commits

Christian Specht  committed afc4dce

combine path on NAS drive AFTER checking if the drive exists at all

  • Participants
  • Parent commits 43952cc

Comments (0)

Files changed (1)

File src/PcToNas.ps1

 }
 
 $nasdrive = $config.copy.nasdrive.value
-$nasfolder = Join-Path $nasdrive $config.copy.nasfolder.value
 $waittime = $config.copy.waittime.value
 
 Import-LocalizedData -BindingVariable msg -FileName messages.psd1
 	break
 }
 
+$nasfolder = Join-Path $nasdrive $config.copy.nasfolder.value
+
 $numerrors = 0
 
 foreach ($node in $config.copy.sourcefolder)