Skip to content

Commit c04a7c4

Browse files
committed
Add \n to strip of input lines to correctly handle last command
1 parent 0a81ec8 commit c04a7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ducky.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__(
134134

135135
with open(filename, "r") as duckyscript:
136136
for line in duckyscript:
137-
line = line.strip(" \r")
137+
line = line.strip(" \n\r")
138138
if len(line) > 0:
139139
self.lines.append(line)
140140

0 commit comments

Comments
 (0)