summaryrefslogtreecommitdiff
path: root/bin/common/drop_cache
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-07-24 13:10:59 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-07-24 13:10:59 +0200
commit0cbd27042a2ab45f3691bb86e0c5b030768a4619 (patch)
treeafc3286f5197c9709c1f98752573a48368de93ab /bin/common/drop_cache
parentbfde7ebf65e761a6df9a8bfb43ea5d40b44472c0 (diff)
don't use tee if root
Diffstat (limited to 'bin/common/drop_cache')
-rwxr-xr-xbin/common/drop_cache2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/common/drop_cache b/bin/common/drop_cache
index 4833597..e4fc039 100755
--- a/bin/common/drop_cache
+++ b/bin/common/drop_cache
@@ -4,5 +4,5 @@ then
echo "Please run as root."
exit 1
fi
-echo 3 | tee /proc/sys/vm/drop_caches >/dev/null
+echo 3 > /proc/sys/vm/drop_caches
echo "cache cleared."