aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-12-05 14:10:37 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-12-05 14:10:37 +0100
commitc8ed2a0b68c69da998fde24fc2dabbfc7ceded5f (patch)
tree37c1e99995b4996f0e84a9ff47fcab244d2b98ae /src
parent4dca2e233748eb386a0054170491697bcb0532ea (diff)
downloadpolecat-c8ed2a0b68c69da998fde24fc2dabbfc7ceded5f.tar.gz
polecat-c8ed2a0b68c69da998fde24fc2dabbfc7ceded5f.zip
update wine env output to output actual given wine version
Diffstat (limited to 'src')
-rw-r--r--src/wine.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/wine.c b/src/wine.c
index f1827d8..80b9cfa 100644
--- a/src/wine.c
+++ b/src/wine.c
@@ -285,14 +285,13 @@ int wine_env(int argc, char** argv)
winepath[strlen(winepath) - strlen("wine")] = '\0';
if (isatty(STDOUT_FILENO))
{
- puts("To add a wine installation to your PATH\n"
- "you have to eval polecats output eval\n"
- "the output (or your shells equivelent)\n\n"
- " eval `polecat wine env <version>`");
+ printf("To add a wine installation to your PATH\n"
+ "you have to eval the output.\n\n"
+ "$ eval `polecat wine env %s`\n", winever);
}
else
{
- printf("PS1=\"(%s)$PS1\"\nPATH=\"%s:$PATH\"\n", winever, winepath);
+ printf("PS1=\"(%s) $PS1\"\nPATH=\"%s:$PATH\"\n", winever, winepath);
}
//printf("PATH=\"%s\"\n# Run this code in your Terminal\n# by running eval `%s`", newpath, argv[0]);
}