summaryrefslogtreecommitdiff
path: root/filebrowser
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-02-02 02:42:30 -0600
committerepoch <epoch@hacking.allowed.org>2017-02-02 02:42:30 -0600
commitd5cd6145b1c1e99ccbd2b48ccb1f02f4a9a635f6 (patch)
tree96f84fc07e1162efd3e9fb3d16c25e83fbec0813 /filebrowser
parent242c5e6e480b5edccf2d7a4b55561a65399007f0 (diff)
downloadhackvr-d5cd6145b1c1e99ccbd2b48ccb1f02f4a9a635f6.tar.gz
hackvr-d5cd6145b1c1e99ccbd2b48ccb1f02f4a9a635f6.zip
forgot to remove carriage returns from gopher
Diffstat (limited to 'filebrowser')
-rwxr-xr-xfilebrowser/backend-gopher.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/filebrowser/backend-gopher.sh b/filebrowser/backend-gopher.sh
index 288e228..54b39c5 100755
--- a/filebrowser/backend-gopher.sh
+++ b/filebrowser/backend-gopher.sh
@@ -8,7 +8,7 @@ port=70
selection=/
while true;do
#not sure why this needs to be printed to show up every time.
- printf '%s\n' "$selection" | ncat "$server" "$port" | tee /dev/stderr | grep -v ^i | cut -f2
+ printf '%s\n' "$selection" | ncat "$server" "$port" | tee /dev/stderr | grep -v ^i | cut -f2 | tr -d '\r'
### need to ask user for input in the form of a pop-up window if the selected target was of type 7
read -r selection
echo