Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored and 0cyn committed Jan 10, 2024
1 parent f311bff commit c64eb48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dragon/shscripts/building
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
clean_dir()
{
prefix_print "Cleaning $1"
if [ -z "$DRAGON_DIR" ]; then
if [[ -z $DRAGON_DIR ]]; then
drexit_reason "nil DRAGON_DIR"
fi
# find . -name 'build.ninja' -delete
if [[ -f $DRAGON_DIR/DragonMake ]]; then
cp $DRAGON_DIR/DragonMake .DragonMake
fi
Expand All @@ -27,7 +26,7 @@ build()
# shellcheck disable=SC2046
cd $(python3 -c "print('.' if '$1.ninja' in '$(ls | xargs)' else '$1')") || drexit
python3 -c "exit(0 if ('${project_dirs}'.count('.')<2) else 1)" && mv "$(ls *.ninja | xargs | cut -d' ' -f1)" ./build.ninja
if [ -z "$DRAGON_DIR" ]; then
if [[ -z $DRAGON_DIR ]]; then
drexit_reason "nil DRAGON_DIR"
fi
if ! [[ -d $DRAGON_DIR/_/.dragonbuilding ]]; then
Expand Down

0 comments on commit c64eb48

Please sign in to comment.