We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e777edb commit fc9e594Copy full SHA for fc9e594
htdecodetoken
@@ -109,7 +109,8 @@ if [ -n "$TOKENFILE" ]; then
109
echo "$TOKENFILE not found" >&2
110
exit 1
111
fi
112
- read TOKEN <$TOKENFILE
+ # the -n is needed here for when there is no ending newline in the file
113
+ read TOKEN <$TOKENFILE || [ -n "$TOKEN" ]
114
115
if [ -z "$TOKEN" ]; then
116
echo "Token is empty" >&2
htgettoken.spec
@@ -80,6 +80,8 @@ rm -rf $RPM_BUILD_ROOT
80
81
82
%changelog
83
+# - Fix htdecodetoken to work with token files that do not end in a newline.
84
+
85
* Thu Jul 25 2024 Dave Dykstra <[email protected]> 2.0-2
86
- Fix broken httokendecode symlink.
87
- Use python wheels to build/install on el9. It didn't work on el8 so
0 commit comments