[Digikam-devel] Bug#581078: [PATCH] Replace bashisms in cleanup_digikamdb
Philipp Matthias Hahn
pmhahn at debian.org
Sun Aug 7 09:15:52 BST 2011
tag 581078 + patch
thanks
Replace bashisms in cleanup_digikamdb (Closes: #581078)
--- a/core/utilities/scripts/cleanup_digikamdb/cleanup_digikamdb
+++ b/core/utilities/scripts/cleanup_digikamdb/cleanup_digikamdb
@@ -110,14 +110,14 @@ EOF
cleanupDB()
{
- cd "$1" 2&> /dev/null
+ cd "$1" > /dev/null 2>&1
if [ $? = 0 ]; then
local db_out="${output_str_database}:"
- echo -e "${output_str_location}:\t$(pwd)"
+ echo "${output_str_location}: $(pwd)"
for db in $(eval "find . ${db_find_cmd} 2> /dev/null")
do
- echo -ne "${db_out}\t${db} ... "
+ echo -n "${db_out} ${db} ... "
sqlite3 ${db} "VACUUM;"
if [ $? = 0 ]
then
@@ -126,9 +126,12 @@ cleanupDB()
echo "failed!"
fi
done
- echo -e "\n=> Finished";
+ echo
+ echo "=> Finished"
else
- echo -e "\nI was not able to enter the database folder.\n"
+ echo
+ echo "I was not able to enter the database folder."
+ echo
echo "Make sure that the variable '${config_key}' in your 'digikamrc' config file"
echo "is set correctly and that you have permissions to access the database folder."
fi
--
Philipp Matthias Hahn <pmhahn at debian.org>
GPG/PGP: 9A540E39 @ keyrings.debian.org
More information about the Digikam-devel
mailing list