Ensure stdin is redirected to python

This commit is contained in:
Jason Nader 2020-02-27 22:23:44 +09:00 committed by Fabian Homborg
parent 45b1ca25a5
commit adfe8d681d

View file

@ -53,7 +53,7 @@ function __bower_list_installed
if set -l python (__fish_anypython)
# Warning: That weird indentation is necessary, because python.
$python -S -c 'import json, sys; data = json.load(sys.stdin);
for k,v in data["dependencies"].items(): print(k + "\t" + v[:18])' bower.json 2>/dev/null
for k,v in data["dependencies"].items(): print(k + "\t" + v[:18])' <bower.json 2>/dev/null
return
end