drop unnecessary ifdef __linux__

since nnn requires gsed anyway, why don't use it?
Probably forgot in #1210
This commit is contained in:
Omar Polo 2021-11-24 11:40:59 +01:00
parent 8ec2fe7f81
commit deead97e23
1 changed files with 0 additions and 5 deletions

View File

@ -2729,12 +2729,7 @@ static void archive_selection(const char *cmd, const char *archive, const char *
}
snprintf(buf, CMD_LEN_MAX,
#ifdef __linux__
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);
free(buf);