Redirect stdout/stderr to /dev/null.

This commit is contained in:
Shishir Mahajan 2020-07-09 17:54:16 -07:00
parent 3a5dfee739
commit 8e086eb382
No known key found for this signature in database
GPG Key ID: D41782E7688DEC4A

View File

@ -52,7 +52,7 @@ main() {
cleanup() {
echo "INFO: Starting cleanup."
pushd $curr_dir
pushd $curr_dir >/dev/null 2>&1
if [ "$CLEANUP_CONTAINERD" = true ]; then
if systemctl -q is-active "containerd.service"; then
echo "INFO: Stopping containerd."
@ -94,8 +94,8 @@ cleanup() {
rm -rf /tmp/nomad-driver-containerd
echo "INFO: Cleanup containerd-driver binary."
make clean
popd
make clean >/dev/null 2>&1
popd >/dev/null 2>&1
echo "INFO: Cleanup complete."
}