📦➔🦋 Store and retrieve files on the Atmosphere

build: support realpath not working

For some reason, this throws errors on Tangled CI. It's not a massive deal if it doesn't work, so we'll just fallback to the full path instead.

ducky.ws 02df0cdf f2a0ecb6

Waiting for spindle ...
+8 -2
+8 -2
src/commands/build.sh
··· 58 58 # shellcheck disable=SC2154 59 59 dist_dir="$_prog_dir/bin" 60 60 dist_path="$dist_dir/$dist_file" 61 - dist_path_relative="$(realpath --relative-to="$(pwd)" "$dist_path")" 61 + dist_path_relative="$(realpath --relative-to="$(pwd)" "$dist_path" 2>/dev/null)" 62 62 parsed_version="$(atfile.util.parse_version "$_version")" 63 63 version_record_id="atfile-$parsed_version" 64 64 ··· 67 67 test_style_count=0 68 68 test_warning_count=0 69 69 test_ignore_count=0 70 + 71 + if [[ -z "$dist_path_relative" ]]; then 72 + dist_path_relative="$dist_path" 73 + else 74 + dist_path_relative="./$dist_path_relative" 75 + fi 70 76 71 77 atfile.say "$(atfile.build.pad_emoji "⚒️" " ") Building..." 72 78 ··· 173 179 exit 255 174 180 else 175 181 echo -e "$(atfile.build.pad_emoji "✅" "") Built: $_version 176 - ↳ Path: ./$dist_path_relative 182 + ↳ Path: $dist_path_relative 177 183 ↳ Check: $checksum 178 184 ↳ Size: $(atfile.util.get_file_size_pretty "$(stat -c %s "$dist_path")") 179 185 ↳ Lines: $(atfile.util.fmt_int "$(wc -l < "$dist_path")")