summarylogtreecommitdiffstats
path: root/tor-browser.sh
diff options
context:
space:
mode:
authorgrufo2017-09-29 20:41:42 +0100
committergrufo2017-09-29 20:41:42 +0100
commitca3a15d51b66e7baaf1319ee616e3460fad5030e (patch)
treee8be5bcb43791cad9565678806b424d1d5cfa79c /tor-browser.sh
parent1557e80f3181c87ae278e0acc21df03f1d7227df (diff)
downloadaur-ca3a15d51b66e7baaf1319ee616e3460fad5030e.tar.gz
tor-browser.sh: `rm -R` replaced with `rm -rf` in `_refresh_local_()`
Diffstat (limited to 'tor-browser.sh')
-rwxr-xr-xtor-browser.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tor-browser.sh b/tor-browser.sh
index 9b17161825a4..6e14ef0a6794 100755
--- a/tor-browser.sh
+++ b/tor-browser.sh
@@ -68,7 +68,7 @@ _refresh_local_() {
local DIR_IS_KEPT=0
if [[ -d "${KEEP_DIR}" ]]; then
- [[ -d "${KEPT_DIR}" ]] && rm -R "${KEPT_DIR}"
+ [[ -d "${KEPT_DIR}" ]] && rm -rf "${KEPT_DIR}"
mv "${KEEP_DIR}" "${KEPT_DIR}"
echo "${0}: Preserving files in ${KEPT_DIR}/." >> "${_TB_LOG_FILE_}"
DIR_IS_KEPT=1
@@ -83,7 +83,7 @@ _refresh_local_() {
\nThe error log can be found in ${_TB_LOG_FILE_}."
if [[ ! ${DIR_IS_KEPT} -eq 0 ]]; then
- rm -R "${KEEP_DIR}"
+ rm -rf "${KEEP_DIR}"
mv "${KEPT_DIR}" "${KEEP_DIR}"
fi