mirror of
https://github.com/openeggbert/bit-backup.git
synced 2025-03-25 15:37:53 +01:00
Fixed several small issues
This commit is contained in:
parent
845c5ebe49
commit
ddae394534
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,3 +11,6 @@
|
|||||||
/target/
|
/target/
|
||||||
|
|
||||||
/nbproject/
|
/nbproject/
|
||||||
|
*nbactions.xml
|
||||||
|
.bib.sqlite3**
|
||||||
|
|
||||||
|
@ -453,7 +453,7 @@ public class CheckCommand implements Command {
|
|||||||
LOG.info("Part {}: Updating files - content and last modification date were changed: {}",
|
LOG.info("Part {}: Updating files - content and last modification date were changed: {}",
|
||||||
CheckCommandPart.COMPARE_CONTENT_AND_LAST_MODTIME.number,
|
CheckCommandPart.COMPARE_CONTENT_AND_LAST_MODTIME.number,
|
||||||
contentAndModTimeWereChanged);
|
contentAndModTimeWereChanged);
|
||||||
LOG.info("Part {}: Updating files - content and last modification date were not changed): {}",
|
LOG.info("Part {}: Updating files - content and last modification date were not changed: {}",
|
||||||
CheckCommandPart.COMPARE_CONTENT_AND_LAST_MODTIME.number,
|
CheckCommandPart.COMPARE_CONTENT_AND_LAST_MODTIME.number,
|
||||||
filesToUpdateLastCheckDate.size());
|
filesToUpdateLastCheckDate.size());
|
||||||
bibContext.getFileRepository().updateLastCheckDate(now.toString(), filesToUpdateLastCheckDate);
|
bibContext.getFileRepository().updateLastCheckDate(now.toString(), filesToUpdateLastCheckDate);
|
||||||
|
@ -45,7 +45,7 @@ public class HelpCommand implements Command {
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
bib [command] [options]
|
bib [command] [options]
|
||||||
If no command is provided, then the default command check is used. This means, if you run "bit-backup", it is the same, as to run "bib check".
|
If no command is provided, then the default command check is used. This means, if you run "bib", it is the same, as to run "bib check".
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Detects bit rotten files in the given directory to keep your files forever.
|
Detects bit rotten files in the given directory to keep your files forever.
|
||||||
|
@ -143,8 +143,8 @@ public class SystemItemRepositoryImplSqlite implements SystemItemRepository {
|
|||||||
|
|
||||||
String sql = sb.toString();
|
String sql = sb.toString();
|
||||||
try (
|
try (
|
||||||
Connection connection = sqliteConnectionFactory.createConnection(); PreparedStatement stmt = connection.prepareStatement(sql);) {
|
Connection connection = sqliteConnectionFactory.createConnection(); PreparedStatement stmt = connection.prepareStatement(sql)) {
|
||||||
|
stmt.setString(1, key);
|
||||||
stmt.executeUpdate();
|
stmt.executeUpdate();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
System.out.println(e.getMessage());
|
System.out.println(e.getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user