Inform user that a new script exists
This commit is contained in:
parent
5e0f2f42fe
commit
bcec228598
2 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
version = '1.16.5-1.1'
|
version = '1.16.5-1.1.1'
|
||||||
group = 'com.github.jinks.extbackup' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group = 'com.github.jinks.extbackup' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = 'ExtBackup'
|
archivesBaseName = 'ExtBackup'
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ public enum BackupHandler {
|
||||||
try {
|
try {
|
||||||
Files.write(script.toPath(), "#!/bin/bash\n# Put your backup script here!\n\nexit 0".getBytes(StandardCharsets.UTF_8));
|
Files.write(script.toPath(), "#!/bin/bash\n# Put your backup script here!\n\nexit 0".getBytes(StandardCharsets.UTF_8));
|
||||||
script.setExecutable(true);
|
script.setExecutable(true);
|
||||||
|
ExtBackup.logger.info("No backup script was found, a script has been created at " + script.getAbsolutePath() + ", please modify it to your liking.");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
ExtBackup.logger.error("Backup script does not exist and cannot be created!");
|
ExtBackup.logger.error("Backup script does not exist and cannot be created!");
|
||||||
ExtBackup.logger.error("Disabling ExtBackup!");
|
ExtBackup.logger.error("Disabling ExtBackup!");
|
||||||
|
|
Loading…
Reference in a new issue