Skip to content
Snippets Groups Projects
Commit 13f607af authored by kaloyane's avatar kaloyane
Browse files

bugfix: keep the contents of the datastore_server/ext-lib folder between upgrades

SVN: 23193
parent c17ce334
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,12 @@ executeScriptHooks() ...@@ -31,12 +31,12 @@ executeScriptHooks()
} }
# #
# Copies a file (first parameter) to a destination (second parameter). # Copies a file/folder (first parameter) to a destination (second parameter).
# Does nothing if file does not exist. # Does nothing if file/folder does not exist.
# #
copyIfExists() copyIfExists()
{ {
if [ -f "$1" ]; then if [ -e "$1" ]; then
cp -R "$1" "$2" cp -R "$1" "$2"
fi fi
} }
......
...@@ -31,13 +31,13 @@ executeScriptHooks() ...@@ -31,13 +31,13 @@ executeScriptHooks()
} }
# #
# Copies a file (first parameter) to a destination (second parameter). # Copies a file/folder (first parameter) to a destination (second parameter).
# Does nothing if file does not exist. # Does nothing if file/folder does not exist.
# #
copyIfExists() copyIfExists()
{ {
if [ -f "$1" ]; then if [ -e "$1" ]; then
cp "$1" "$2" cp -R "$1" "$2"
fi fi
} }
......
...@@ -31,12 +31,12 @@ executeScriptHooks() ...@@ -31,12 +31,12 @@ executeScriptHooks()
} }
# #
# Copies a file (first parameter) to a destination (second parameter). # Copies a file/folder (first parameter) to a destination (second parameter).
# Does nothing if file does not exist. # Does nothing if file/folder does not exist.
# #
copyIfExists() copyIfExists()
{ {
if [ -f "$1" ]; then if [ -e "$1" ]; then
cp -R "$1" "$2" cp -R "$1" "$2"
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment