๐Ÿ“ฆโž”๐Ÿฆ‹ Store and retrieve files on the Atmosphere
35
fork

Configure Feed

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

origin:dev โž” dev

Ducky 9eb06cc0 29645321

+15 -5
+15 -5
atfile.sh
··· 1132 1132 # Commands 1133 1133 1134 1134 function atfile.invoke.debug() { 1135 + prog_not_installed_placeholder="(Not Installed)" 1136 + 1135 1137 function atfile.invoke.debug.print_envvar() { 1136 1138 variable_name="${_envvar_prefix}_$1" 1137 1139 variable_default="$2" ··· 1153 1155 if [ -x "$(command -v $prog)" ]; then 1154 1156 eval "$prog $version_arg" 1155 1157 else 1156 - echo "(Not Installed)" 1158 + echo "$prog_not_installed_placeholder" 1157 1159 fi 1158 1160 } 1159 1161 ··· 1161 1163 atfile.die "Command not available as JSON" 1162 1164 fi 1163 1165 1164 - md5sum_version="$(atfile.invoke.debug.print_prog_version "md5sum" | head -n 1)" 1166 + md5sum_version="$(atfile.invoke.debug.print_prog_version "md5sum")" 1167 + mediainfo_version="$(atfile.invoke.debug.print_prog_version "mediainfo")" 1165 1168 os="$(atfile.util.get_finger_record | jq -r ".os")" 1166 1169 1167 - if [[ $md5sum_version == *GNU* ]]; then 1168 - md5sum_version="$(echo $md5sum_version | cut -d " " -f 4) (GNU)" 1170 + if [[ "$md5sum_version" != "$prog_not_installed_placeholder" ]]; then 1171 + md5sum_version="$(echo "$md5sum_version" | head -n 1)" 1172 + if [[ "$md5sum_version" == *GNU* ]]; then 1173 + md5sum_version="$(echo "$md5sum_version" | cut -d " " -f 4) (GNU)" 1174 + fi 1175 + fi 1176 + 1177 + if [[ "$mediainfo_version" != "$prog_not_installed_placeholder" ]]; then 1178 + mediainfo_version="$(echo "$mediainfo_version" | grep "MediaInfoLib" | cut -d "v" -f 2)" 1169 1179 fi 1170 1180 1171 1181 debug_output="ATFile ··· 1198 1208 โ†ณ ExifTool: $(atfile.invoke.debug.print_prog_version "exiftool" "-ver") 1199 1209 โ†ณ jq: $(atfile.invoke.debug.print_prog_version "jq" | sed -e "s|jq-||g") 1200 1210 โ†ณ md5sum: $md5sum_version 1201 - โ†ณ MediaInfo: $(atfile.invoke.debug.print_prog_version "mediainfo" | grep "MediaInfoLib" | cut -d "v" -f 2) 1211 + โ†ณ MediaInfo: $mediainfo_version 1202 1212 Actor 1203 1213 โ†ณ DID: $_username 1204 1214 โ†ณ PDS: $_server