Просмотр исходного кода

use touch from path

on some systems touch(1) is in /bin, not /usr/bin.
instead hardcoding another path, take it from $PATH, like other commands used here (rm, echo)
Elan Ruusamäe 11 лет назад
Родитель
Сommit
e0656af1fc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/testfolderwatcher.h

+ 1 - 1
test/testfolderwatcher.h

@@ -103,7 +103,7 @@ private slots:
         Utility::writeRandomFile(QString("%1/a1/random.bin").arg(_root));
 #else
         QString cmd;
-        cmd = QString("/usr/bin/touch %1").arg(file);
+        cmd = QString("touch %1").arg(file);
         qDebug() << "Command: " << cmd;
         system(cmd.toLocal8Bit());
 #endif