Remove empty - checking to find actual and overwrite any existing
This commit is contained in:
parent
bab83c7e3e
commit
d8cc6f3ba1
|
@ -896,7 +896,7 @@ function checkTftpServer() {
|
||||||
|
|
||||||
// write a couple of sentinels to different distro tftp locations in the filesystem
|
// write a couple of sentinels to different distro tftp locations in the filesystem
|
||||||
foreach ($possibleFtpDirs as $dirToTest) {
|
foreach ($possibleFtpDirs as $dirToTest) {
|
||||||
if (is_dir($dirToTest) && is_writable($dirToTest) && empty($tftpRootPath)) {
|
if (is_dir($dirToTest) && is_writable($dirToTest)) {
|
||||||
$tempFile = "${dirToTest}/{$remoteFileName}";
|
$tempFile = "${dirToTest}/{$remoteFileName}";
|
||||||
file_put_contents($tempFile, $remoteFileContent);
|
file_put_contents($tempFile, $remoteFileContent);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue