Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle trailing slash on folder path when importing from a db dump to mysql #22

Open
nekohayo opened this issue Aug 19, 2019 · 0 comments

Comments

@nekohayo
Copy link

$ ./kanboard-sqlite2mysql.sh ../kanboard_perf_test_mysql/ foo_kanboard-perso -h localhost -u foo_kb1 -p

# Create MySQL data dump from SQLite database
done
check db-mysql.sql
# Generate schema in the MySQL database using Kanboard
mv: cannot stat `../kanboard_perf_test_mysql//config.php': No such file or directory

This is because I had the trailing slash (from bash autocompletion) in the target folder in the command. Ideally the script should handle this automatically and realize that it shouldn't add another trailing slash if there already is one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant