Skip to content

Commit

Permalink
ci: more debugging of fresh macos
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 7, 2023
1 parent e15d96a commit 2e47846
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands/down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function down() (
if test -n "$unzip_format" -o -n "$unzip_filter"; then
local url_basename
url_basename="$(basename "$url" | echo-trim-special)"
download_directory="$(debug-bash -v fs-temp --directory='down' --directory)"
download_directory="$(debug-bash fs-temp --directory='down' --directory)"
download_file="$url_basename"
else
download_directory="$directory"
Expand Down
2 changes: 1 addition & 1 deletion commands/fs-temp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function fs_temp() (
# generate a non-existent directory name
while true; do
directory="$option_prefix$(get-random-number)$option_suffix"
if is-missing "$root/$directory"; then
if debug-bash is-missing "$root/$directory"; then
break
fi
done
Expand Down
5 changes: 4 additions & 1 deletion commands/is-missing
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
function is_missing() (
source "$DOROTHY/sources/bash.bash"

! is-present "$1"
# should be opposite of is-present

# just -e is faulty, as -e fails on symlinks
! test -e "$1" -o -L "$1"
)

# fire if invoked standalone
Expand Down

0 comments on commit 2e47846

Please sign in to comment.