aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-10-27 12:35:07 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-10-27 12:39:01 +0300
commit2922690b716540b7e3971ffbdf506148503c7788 (patch)
treeccb6a4dbbffadf5f91ee47ca5ef5bd8347c02a1c /src/actions.c
parent1b09a70af6096d2f85cadff82f227e4e6850bfda (diff)
downloadck-2922690b716540b7e3971ffbdf506148503c7788.tar.gz
ck-2922690b716540b7e3971ffbdf506148503c7788.tar.bz2
ck-2922690b716540b7e3971ffbdf506148503c7788.zip
change own&grp when it should. version 0.8.1!
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c
index 5220864..649ffb8 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -317,7 +317,7 @@ int run_RESTORE(UserOpt *opt, Conf *conf) {
if (list_next(opt->args)) {
if (program_exists(&db, list_get(opt->args))) {
if (restore_configs_exists(&db, conf, list_get(opt->args), from, to)) {
- HELP("Making links for %s", list_get(opt->args));
+ hLOG("Restoring links for %s...", list_get(opt->args));
}
else {
err_flag = 1;
@@ -336,7 +336,7 @@ int run_RESTORE(UserOpt *opt, Conf *conf) {
else if (strcmp(list_get(opt->args), "all") == 0) {
if (!list_next(opt->args)) {
if (restore_all_exist(&db, conf, from, to)) {
- HELP("Make all links");
+ hLOG("Restoring all links...");
}
else {
err_flag = 1;
@@ -353,7 +353,6 @@ int run_RESTORE(UserOpt *opt, Conf *conf) {
}
close_DB(&db);
if (!err_flag) {
- HELP("LINKS");
int rc = restore_make_links(from, to);
list_free(from);
list_free(to);
@@ -361,5 +360,5 @@ int run_RESTORE(UserOpt *opt, Conf *conf) {
}
list_free(from);
list_free(to);
- return 1;
+ return -2;
}