Snippets

Joerg Hochwald M87g: Untitled snippet

Updated by Joerg Hochwald

File MODM_Preview_Fix.sh Added

  • Ignore whitespace
  • Hide word diff
+#!/bin/bash
+
+IFS=$'\n'
+
+# Kill all running instances of OneDrive Business
+killall -9 "OneDrive for Business" 2>/dev/null
+killall -9 "OneDrive for Business" 2>/dev/null
+
+# Find all stale caches
+for i in `find ~/Library -name OfficeFileCache 2>/dev/null`;
+do echo $i;
+    rm -Rf "$i";
+done
+
+# Restart OneDrive Business
+/Applications/OneDrive\ for\ Business.app/Contents/MacOS/OneDrive\ for\ Business &
+
+# Make a clean exit
+exit 0

File snippet.sh Deleted

  • Ignore whitespace
  • Hide word diff
-#!/bin/bash
-
-IFS=$'\n'
-
-# Kill all running instances of OneDrive Business
-killall -9 "OneDrive for Business" 2>/dev/null
-killall -9 "OneDrive for Business" 2>/dev/null
-
-# Find all stale caches
-for i in `find ~/Library -name OfficeFileCache 2>/dev/null`;
-do echo $i;
-    rm -Rf "$i";
-done
-
-# Restart OneDrive Business
-/Applications/OneDrive\ for\ Business.app/Contents/MacOS/OneDrive\ for\ Business &
-
-# Make a clean exit
-exit 0
Created by Joerg Hochwald

File snippet.sh Added

  • Ignore whitespace
  • Hide word diff
+#!/bin/bash
+
+IFS=$'\n'
+
+# Kill all running instances of OneDrive Business
+killall -9 "OneDrive for Business" 2>/dev/null
+killall -9 "OneDrive for Business" 2>/dev/null
+
+# Find all stale caches
+for i in `find ~/Library -name OfficeFileCache 2>/dev/null`;
+do echo $i;
+    rm -Rf "$i";
+done
+
+# Restart OneDrive Business
+/Applications/OneDrive\ for\ Business.app/Contents/MacOS/OneDrive\ for\ Business &
+
+# Make a clean exit
+exit 0
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.