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

Configure Feed

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

fix sourcing

Ducky be0d5985 e72e0266

+15 -9
+15 -9
src/entry.sh
··· 143 143 _nsid_meta="${_nsid_prefix}.atfile.meta" 144 144 _nsid_upload="${_nsid_prefix}.atfile.upload" 145 145 146 - ## Source detection 146 + ## "Hello, world!" 147 147 148 - if [[ "$0" != "${BASH_SOURCE[0]}" ]] && [[ "$ATFILE_DEVEL" != 1 ]]; then 149 - _debug=0 150 - _is_sourced=1 151 - _output_json=1 152 - fi 148 + atfile.say.debug "Starting up..." 153 149 154 - ## "Hello, world!" 150 + ## Source detection 155 151 156 - atfile.say.debug "Starting up..." 152 + if [[ "$0" != "${BASH_SOURCE[0]}" ]]; then 153 + if [[ "$ATFILE_DEVEL" == 1 ]]; then 154 + if [[ -n "$ATFILE_DEVEL_SOURCE" ]]; then 155 + _is_sourced=1 156 + atfile.say.debug "Sourcing: $ATFILE_DEVEL_SOURCE" 157 + fi 158 + else 159 + _is_sourced=1 160 + atfile.say.debug "Sourcing: ${BASH_SOURCE[0]}" 161 + fi 162 + fi 157 163 158 164 ## Envvar correction 159 165 ··· 403 409 atfile.invoke.lock "$2" 1 404 410 ;; 405 411 "now") 406 - atfile.invoke.now "$2" 412 + atfile.now "$2" 407 413 ;; 408 414 "record") 409 415 # NOTE: Performs no validation (apart from JSON)! Here be dragons