aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay3
1 files changed, 2 insertions, 1 deletions
diff --git a/ponysay b/ponysay
index 9578ddc..a20f93a 100755
--- a/ponysay
+++ b/ponysay
@@ -326,7 +326,8 @@ class Ponysay():
Popen(pngcmd, stdout=os.fdopen(pngpipe[1], 'w'), shell=True).wait()
pony = '/proc/' + str(os.getpid()) + '/fd/' + str(pngpipe[0])
- cmd = [cowsay, '-f', self.__kms(pony)]
+ pony = self.__kms(pony)
+ cmd = [cowsay, '-f', pony]
if args.opts['-W'] is not None:
cmd += ['-W', args.opts['-W'][0]]
cmd.append(msg)