projects
/
GrooveNet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2d6fd
)
Don't remove existing stuff in /tmp
author
Cameron Ball
<cameron@cameron1729.xyz>
Mon, 8 Apr 2019 16:45:53 +0000
(
00:45
+0800)
committer
Cameron Ball
<cameron@cameron1729.xyz>
Mon, 8 Apr 2019 16:45:53 +0000
(
00:45
+0800)
SongSync.sh
patch
|
blob
|
history
diff --git
a/SongSync.sh
b/SongSync.sh
index
afe993b
..
e0eafd3
100755
(executable)
--- a/
SongSync.sh
+++ b/
SongSync.sh
@@
-85,8
+85,8
@@
if [ "$1" = "apply" ]; then
for removal_path in "${!removes[@]}"; do
if [ -d "/tmp/${removes[$removal_path]}" ]; then
- echo "
need to rm /tmp/${removes[$removal_path]}
"
- rm -rf "/tmp/${removes[$removal_path]}"
+ echo "
/tmp/${removes[$removal_path]} already exists, skipping
"
+ continue
fi
echo "Moving ${removal_path} to /tmp/${removes[$removal_path]}"