-added quotes to all paths in rm -rf statements
This commit is contained in:
parent
2f5a1c4df6
commit
948a0e584d
5 changed files with 10 additions and 9 deletions
|
@ -277,7 +277,7 @@ class AirtimeInstall
|
|||
|
||||
public static function DeleteFilesRecursive($p_path)
|
||||
{
|
||||
$command = "rm -rf $p_path";
|
||||
$command = "rm -rf \"$p_path\"";
|
||||
exec($command);
|
||||
}
|
||||
|
||||
|
@ -323,7 +323,7 @@ class AirtimeInstall
|
|||
public static function UninstallPhpCode()
|
||||
{
|
||||
echo "* Removing PHP code from ".AirtimeInstall::CONF_DIR_WWW.PHP_EOL;
|
||||
exec("rm -rf ".AirtimeInstall::CONF_DIR_WWW);
|
||||
exec("rm -rf \"{${AirtimeInstall::CONF_DIR_WWW}}\"");
|
||||
}
|
||||
|
||||
public static function InstallBinaries()
|
||||
|
@ -336,7 +336,7 @@ class AirtimeInstall
|
|||
public static function UninstallBinaries()
|
||||
{
|
||||
echo "* Removing Airtime binaries from ".AirtimeInstall::CONF_DIR_BINARIES.PHP_EOL;
|
||||
exec("rm -rf ".AirtimeInstall::CONF_DIR_BINARIES);
|
||||
exec("rm -rf \"{${AirtimeInstall::CONF_DIR_BINARIES}}\"");
|
||||
}
|
||||
|
||||
public static function DirCheck()
|
||||
|
@ -386,6 +386,6 @@ class AirtimeInstall
|
|||
$path = AirtimeInstall::CONF_DIR_LOG;
|
||||
echo "* Removing logs directory ".$path.PHP_EOL;
|
||||
|
||||
exec("rm -rf $path");
|
||||
exec("rm -rf \"$path\"");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue