📦➔🦋 Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

various

Ducky 251c1402 b1452a7b

+20 -7
+1
src/commands/auth.sh
··· 1 1 #!/usr/bin/env bash 2 2 3 + # shellcheck disable=SC2120 3 4 function atfile.auth() { 4 5 override_username="$1" 5 6 override_password="$2"
+17 -6
src/commands/release.sh
··· 53 53 54 54 while IFS="" read -r line 55 55 do 56 - if [[ $line != "#"* ]] &&\ 57 - [[ $line != *" #"* ]] &&\ 58 - [[ $line != " " ]] &&\ 59 - [[ $line != "" ]]; then 56 + include_line=1 57 + 58 + if [[ $line == "#"* ]] ||\ 59 + [[ $line == *" #"* ]] ||\ 60 + [[ $line == " " ]] ||\ 61 + [[ $line == "" ]]; then 62 + include_line=0 63 + fi 64 + 65 + if [[ $line == *"# shellcheck disable"* ]]; then 66 + include_line=1 67 + fi 68 + 69 + 70 + if [[ $include_line == 1 ]]; then 60 71 if [[ $line == *"{:"* && $line == *":}"* ]]; then 61 72 # NOTE: Not using atfile.util.get_envvar() here, as confusion can arise from config file 62 73 line="$(atfile.release.replace_template_var "$line" "meta_author" $ATFILE_FORCE_META_AUTHOR)" ··· 101 112 "warning") level="⚠️ Warning"; (( test_warning_count++ )) ;; 102 113 esac 103 114 104 - echo "↳ $level ($line:$col): [$code] $message" 115 + echo "↳ $level ($line:$col): [SC$code] $message" 105 116 done <<< "$(echo "$shellcheck_output" | jq -c '.[]')" 106 117 107 118 test_total_count=$(( test_error_count + test_info_count + test_style_count + test_warning_count )) ··· 110 121 ↳ Path: ./$dist_path_relative 111 122 ↳ Check: $checksum 112 123 ↳ Size: $(atfile.util.get_file_size_pretty "$(stat -c %s "$dist_path")") 113 - ↳ Lines: $(atfile.util.fmt_int "$(cat "$dist_path" | wc -l)") 124 + ↳ Lines: $(atfile.util.fmt_int "$(wc -l < "$dist_path")") 114 125 ↳ Issues: $(atfile.util.fmt_int "$test_total_count") 115 126 ↳ Error: $(atfile.util.fmt_int "$test_error_count") 116 127 ↳ Warn: $(atfile.util.fmt_int "$test_warning_count")
+1
src/entry.sh
··· 283 283 "at") _command="handle" ;; 284 284 "get"|"i") _command="info" ;; 285 285 "ls") _command="list" ;; 286 + "build") _command="release" ;; 286 287 "did") _command="resolve" ;; 287 288 "sb") _command="something-broke" ;; 288 289 "js") _command="stream" ;;
+1 -1
src/lexi/blue_zio_atfile.sh
··· 41 41 42 42 parsed_tag_date="" 43 43 44 - if [[ "${#tag_date}" > 4 ]]; then 44 + if [[ "${#tag_date}" -gt 4 ]]; then 45 45 parsed_tag_date="$(atfile.util.get_date "$tag_date")" 46 46 elif [[ "${#tag_date}" == 4 ]]; then 47 47 parsed_tag_date="$(atfile.util.get_date "${tag_date}-01-01")"