-
Notifications
You must be signed in to change notification settings - Fork 1
issue-276 #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
issue-276 #331
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,4 +46,18 @@ done | |
| find . -name ".git*" -print0 | xargs -0 rm -rf | ||
| zip -r -q ${SRC_FOLDER_NAME}.zip . | ||
|
|
||
| read_err_path() { | ||
| read -d $'\0' err_path | ||
| } | ||
|
|
||
| find . -name "*[<>:\\|?*]*" -print0 | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. вот тут я сломался. что тут происходит, куда уходит результат?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Результат читается построчно в функции read_err_path
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. не ну это жесть какая-то. ищем в одной строчке, читаем в функции, а используем вообще дальше |
||
| if read_err_path; then | ||
| echo "Export aborted! Invalid characters found in file or directories name(s):\n- $err_path" | ||
| while read_err_path | ||
| do | ||
| echo "- $err_path" | ||
| done | ||
| exit | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exit без кода что вернёт?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Вроде бы то же, что exit 0
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Можно exit 1 написать, раз завершение с ошибкой, но разница будет ли |
||
| fi | ||
|
|
||
| open . | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а нам точно нужна отдельная функция? можем этот код перенести к while?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вынесено в функцию, чтобы дублирования не было