mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Fix build break
This commit is contained in:
parent
3d9905615d
commit
8f910fe85a
10
src/nnn.c
10
src/nnn.c
|
@ -3885,7 +3885,7 @@ static bool remote_mount(char *newpath)
|
||||||
{
|
{
|
||||||
uchar flag = F_CLI;
|
uchar flag = F_CLI;
|
||||||
int opt;
|
int opt;
|
||||||
char *tmp, *env, *cmd;
|
char *tmp, *env;
|
||||||
bool r, s;
|
bool r, s;
|
||||||
|
|
||||||
r = getutil(utils[UTIL_RCLONE]);
|
r = getutil(utils[UTIL_RCLONE]);
|
||||||
|
@ -3901,12 +3901,10 @@ static bool remote_mount(char *newpath)
|
||||||
else
|
else
|
||||||
opt = (!s) ? 'r' : 's';
|
opt = (!s) ? 'r' : 's';
|
||||||
|
|
||||||
if (opt == 's') {
|
if (opt == 's')
|
||||||
cmd = utils[UTIL_SSHFS];
|
env = xgetenv("NNN_SSHFS", utils[UTIL_SSHFS]);
|
||||||
env = xgetenv("NNN_SSHFS", cmd);
|
else if (opt == 'r') {
|
||||||
} else if (opt == 'r') {
|
|
||||||
flag |= F_NOWAIT | F_NOTRACE;
|
flag |= F_NOWAIT | F_NOTRACE;
|
||||||
cmd = utils[UTIL_RCLONE];
|
|
||||||
env = xgetenv("NNN_RCLONE", "rclone mount");
|
env = xgetenv("NNN_RCLONE", "rclone mount");
|
||||||
} else {
|
} else {
|
||||||
printmsg(messages[MSG_INVALID_KEY]);
|
printmsg(messages[MSG_INVALID_KEY]);
|
||||||
|
|
Loading…
Reference in a new issue