fix: unix2dos

Carlos Alexandro Becker created

Change summary

testscript/testdata/mirror.txtar          | 7 ++++---
testscript/testdata/repo-create.txtar     | 4 ++++
testscript/testdata/repo-import.txt       | 4 ++++
testscript/testdata/set-username.txtar    | 4 ++++
testscript/testdata/user_management.txtar | 4 ++++
5 files changed, 20 insertions(+), 3 deletions(-)

Detailed changes

testscript/testdata/mirror.txtar 🔗

@@ -1,4 +1,8 @@
 # vi: set ft=conf
+
+# convert crlf on windows
+[windows] unix2dos info1.txt info2.txt tree.txt
+
 # import a repo
 soft repo import --mirror charmbracelet/catwalk https://github.com/charmbracelet/catwalk.git
 
@@ -64,9 +68,6 @@ cmp stdout info2.txt
 soft repo blob charmbracelet/test LICENSE
 stdout '.*Creative Commons.*'
 
-[windows] unix2dos info1.txt
-[windows] unix2dos info2.txt
-[windows] unix2dos tree.txt
 
 -- info1.txt --
 Project Name:

testscript/testdata/repo-create.txtar 🔗

@@ -1,4 +1,8 @@
 # vi: set ft=conf
+
+# convert crlf on windows
+[windows] unix2dos tree.txt readme.md branch_list.1.txt
+
 # create a repo
 soft repo create repo1 -d 'description' -H -p -n 'repo11'
 soft repo hidden repo1

testscript/testdata/repo-import.txt 🔗

@@ -1,4 +1,8 @@
 # vi: set ft=conf
+
+# convert crlf on windows
+[windows] unix2dos repo3.txt
+
 # import private
 soft repo import --private repo1 https://github.com/charmbracelet/catwalk.git
 soft repo private repo1

testscript/testdata/user_management.txtar 🔗

@@ -1,4 +1,8 @@
 # vi: set ft=conf
+
+# convert crlf on windows
+[windows] unix2dos info.txt admin_key_list1.txt admin_key_list2.txt list1.txt list2.txt foo_info1.txt foo_info2.txt foo_info3.txt foo_info4.txt foo_info5.txt
+
 # add key to admin
 soft user add-pubkey admin "$ADMIN2_AUTHORIZED_KEY"
 soft user info admin