Skip to content

Commit 2f470c3

Browse files
authored
Change rm and chmod for visudo
1 parent 3992a9e commit 2f470c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

init_benchmark.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env bash
22

33
function clearCacheAndLogs() {
4-
sudo rm -rf app/cache/*
4+
sudo /bin/rm -rf app/cache/*
55
[ "$?" != "0" ] && exit 1
6-
sudo chmod -R 777 app/cache
6+
sudo /bin/chmod -R 777 app/cache
77
[ "$?" != "0" ] && exit 1
88

9-
sudo rm -rf app/logs/*
9+
sudo /bin/rm -rf app/logs/*
1010
[ "$?" != "0" ] && exit 1
11-
sudo chmod -R 777 app/logs
11+
sudo /bin/chmod -R 777 app/logs
1212
[ "$?" != "0" ] && exit 1
1313
}
1414

0 commit comments

Comments
 (0)