Browse Source

Fix build break on macOS

master
Arun Prakash Jana 5 years ago
parent
commit
ff562983e1
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/nnn.c

+ 5
- 2
src/nnn.c View File

@@ -381,6 +381,9 @@ static char * const utils[] = {
#ifdef __linux__ #ifdef __linux__
static char cp[] = "cpg -giRp"; static char cp[] = "cpg -giRp";
static char mv[] = "mvg -gi"; static char mv[] = "mvg -gi";
#else
static char cp[] = "cp -iRp";
static char mv[] = "mv -i";
#endif #endif


/* Common strings */ /* Common strings */
@@ -1235,7 +1238,7 @@ static void cpstr(char *buf)
#ifdef __linux__ #ifdef __linux__
"xargs -0 -a %s -%c {} %s {} .", g_selpath, REPLACE_STR, cp); "xargs -0 -a %s -%c {} %s {} .", g_selpath, REPLACE_STR, cp);
#else #else
"cat %s | xargs -0 -o -%c {} cp -iRp {} .", g_selpath, REPLACE_STR); "cat %s | xargs -0 -o -%c {} %s {} .", g_selpath, REPLACE_STR, cp);
#endif #endif
} }


@@ -1245,7 +1248,7 @@ static void mvstr(char *buf)
#ifdef __linux__ #ifdef __linux__
"xargs -0 -a %s -%c {} %s {} .", g_selpath, REPLACE_STR, mv); "xargs -0 -a %s -%c {} %s {} .", g_selpath, REPLACE_STR, mv);
#else #else
"cat %s | xargs -0 -o -%c {} mv -i {} .", g_selpath, REPLACE_STR); "cat %s | xargs -0 -o -%c {} %s {} .", g_selpath, REPLACE_STR, mv);
#endif #endif
} }




||||||
x
 
000:0
Loading…
Cancel
Save