mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
drop unnecessary ifdef __linux__
since nnn requires gsed anyway, why don't use it? Probably forgot in #1210
This commit is contained in:
parent
8ec2fe7f81
commit
deead97e23
|
@ -2729,12 +2729,7 @@ static void archive_selection(const char *cmd, const char *archive, const char *
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(buf, CMD_LEN_MAX,
|
snprintf(buf, CMD_LEN_MAX,
|
||||||
#ifdef __linux__
|
|
||||||
SED" -ze 's|^%s/||' '%s' | xargs -0 %s %s", curpath, selpath, cmd, archive
|
SED" -ze 's|^%s/||' '%s' | xargs -0 %s %s", curpath, selpath, cmd, archive
|
||||||
#else
|
|
||||||
"tr '\\0' '\n' < '%s' | "SED" -e 's|^%s/||' | tr '\n' '\\0' | xargs -0 %s %s",
|
|
||||||
selpath, curpath, cmd, archive
|
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
spawn(utils[UTIL_SH_EXEC], buf, NULL, NULL, F_CLI | F_CONFIRM);
|
spawn(utils[UTIL_SH_EXEC], buf, NULL, NULL, F_CLI | F_CONFIRM);
|
||||||
free(buf);
|
free(buf);
|
||||||
|
|
Loading…
Reference in a new issue