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

Configure Feed

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

fix potential problems during sudo installation

Ducky ceb12989 9fd14fbe

+5 -8
+3 -1
src/commands/old_cmds.sh
··· 316 316 actor="$(echo "$uri" | cut -d "/" -f 3)" 317 317 key="$(echo "$uri" | cut -d "/" -f 4)" 318 318 319 + atfile.util.create_dir "$_path_blobs_tmp" 320 + 319 321 if [[ -n "$actor" && -n "$key" ]]; then 320 322 atfile.util.override_actor "$actor" 321 323 ··· 355 357 356 358 download_success=1 357 359 # shellcheck disable=SC2154 358 - tmp_path="$_path_blobs_tmp/$blob_cid" 360 + tmp_path="$_path_blobs_tmp/$blob_cid$(atfile.util.get_cache_path "$blob_cid")" 359 361 360 362 if ! [[ -f "$tmp_path" ]]; then 361 363 atfile.say.debug "Downloading '$blob_cid'..."
-7
src/entry.sh
··· 277 277 fi 278 278 fi 279 279 280 - ## Directory creation 281 - 282 - if [[ $_disable_setup_dir_creation == 0 ]]; then 283 - atfile.util.create_dir "$_path_cache" 284 - atfile.util.create_dir "$_path_blobs_tmp" 285 - fi 286 - 287 280 ## Program detection 288 281 289 282 _prog_hint_jq="https://jqlang.github.io/jq"
+2
src/shared/util.sh
··· 183 183 184 184 function atfile.util.get_cache_path() { 185 185 # shellcheck disable=SC2154 186 + mkdir -fp "$_path_cache" 187 + # shellcheck disable=SC2154 186 188 echo "$_path_cache/$1" 187 189 } 188 190