From 1ef1de84115d499c21c0929b808fcf27f50ca9f5 Mon Sep 17 00:00:00 2001 From: 0140454 Date: Mon, 16 Jan 2017 11:46:39 +0800 Subject: [PATCH] Specify delimiter for xargs used in uninstallation script In default, xargs uses blanks to split input data. But there is a path including space in `build/install_manifest.txt`, it will cause xargs generate wrong command lines. Therefore, we have to specify delimiter for xargs. --- uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uninstall.sh b/uninstall.sh index fe9b9cfbd..5800d1c2d 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -5,7 +5,7 @@ if [ -f build/install_manifest.txt ]; then echo "Uninstallation file exists..." - sudo xargs rm < build/install_manifest.txt + sudo xargs -d '\n' rm < build/install_manifest.txt else echo "Uninstallation file does not exist." fi