···294294 handler="$2"
295295296296 function atfile.invoke.handle_atfile.is_temp_file_needed() {
297297- handler="$(echo "$1" | sed s/.desktop$//g)"
297297+ handler="${1//.desktop/}"
298298 type="$2"
299299300300 handlers=(
···346346 # shellcheck disable=SC2319
347347 # shellcheck disable=SC2181
348348 if [[ -n $handler ]] || [[ $? != 0 ]]; then
349349- atfile.say.debug "Opening '$key' ($file_type) with '$(echo "$handler" | sed s/.desktop$//g)'..."
349349+ atfile.say.debug "Opening '$key' ($file_type) with '${handler//.desktop/}'..."
350350351351 # HACK: Some apps don't like http(s)://; we'll need to handle these
352352 if [[ $(atfile.invoke.handle_atfile.is_temp_file_needed "$handler" "$file_type") == 1 ]]; then
···742742 if [[ -n $recipient ]]; then
743743 file_type="application/prs.atfile.gpg-crypt"
744744 elif [[ "$file_type" == "application/"* ]]; then
745745- file_extension="$(echo "$file_name" | sed 's:.*\.::')"
745745+ file_extension="${file_name##*.}"
746746747747 case "$file_extension" in
748748 "car") file_type="application/prs.atfile.car" ;;
+6-4
src/commands/release.sh
···7070 fi
71717272 if [[ $line == *"# shellcheck disable"* ]]; then
7373- include_line=1
7474- (( test_ignore_count++ ))
7373+ if [[ $line == *"=SC2154"* ]]; then
7474+ include_line=0
7575+ else
7676+ include_line=1
7777+ (( test_ignore_count++ ))
7878+ fi
7579 fi
76807781 if [[ $include_line == 1 ]]; then
···9498 echo -e "\n# \"Four million lines of BASIC\"\n# - Kif Kroker (3003)" >> "$dist_path"
959996100 checksum="$(atfile.util.get_md5 "$dist_path")"
9797-9898- echo "$dist_path"
99101100102 echo "๐งช Testing..."
101103 shellcheck_output="$(shellcheck --format=json "$dist_path" 2>&1)"
+1-1
src/entry.sh
···212212213213if [[ $is_os_supported == 0 ]]; then
214214 if [[ $_skip_unsupported_os_warn == 0 ]]; then
215215- atfile.die "Unsupported OS ($(echo "$_os" | sed s/unknown-//g))\nโณ Set ${_envvar_prefix}_SKIP_UNSUPPORTED_OS_WARN=1 to ignore"
215215+ atfile.die "Unsupported OS (${_os//unknown-/})\nโณ Set ${_envvar_prefix}_SKIP_UNSUPPORTED_OS_WARN=1 to ignore"
216216 else
217217 atfile.say.debug "Skipping unsupported OS warning\nโณ ${_envvar_prefix}_SKIP_UNSUPPORTED_OS_WARN is set ($_skip_unsupported_os_warn)"
218218 fi
+3-3
src/lexi/blue_zio_atfile.sh
···2222 file="$1"
23232424 if [ ! -x "$(command -v mediainfo)" ]; then
2525- echo "$(blue.zio.atfile.meta__unknown "Unable to create record at time of upload (MediaInfo not installed)")"
2525+ blue.zio.atfile.meta__unknown "Unable to create record at time of upload (MediaInfo not installed)"
2626 return
2727 fi
2828···7474 file="$1"
75757676 if [ ! -x "$(command -v exiftool)" ]; then
7777- echo "$(blue.zio.atfile.meta__unknown "Unable to create record during upload (ExifTool not installed)")"
7777+ blue.zio.atfile.meta__unknown "Unable to create record during upload (ExifTool not installed)"
7878 return
7979 fi
8080···144144 file="$1"
145145146146 if [ ! -x "$(command -v mediainfo)" ]; then
147147- echo "$(blue.zio.atfile.meta__unknown "Unable to create record during upload (MediaInfo not installed)")"
147147+ blue.zio.atfile.meta__unknown "Unable to create record during upload (MediaInfo not installed)"
148148 return
149149 fi
150150
+3-2
src/shared/say.sh
···10101111 prefix_length=0
12121313+ # shellcheck disable=SC2154
1314 if [[ $_os == "haiku" ]]; then
1414- message="$(echo "$message" | sed 's/โณ/>/g')"
1515+ message="${message//โณ/>}"
1516 fi
16171718 [[ -z $color_prefix_message ]] && color_prefix_message=0
···4041 fi
4142 fi
42434343- message="$(echo "$message" | sed -e "s|\\\n|\\\n$(atfile.util.repeat_char " " "$prefix_length")|g")"
4444+ message="${message//\\n/\\n$(atfile.util.repeat_char " " "$prefix_length")}"
44454546 echo -n -e "${prefix}${color_message}$message\033[0m${suffix}"
4647}