Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If results dir already exists, do not try to create it #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sh2ju.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ date=`which gdate 2>/dev/null || which date`

# create output folder
juDIR=`pwd`/results
mkdir -p "$juDIR" || exit
test ! -e $juDIR && mkdir -p "$juDIR" || exit
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't mkdir -p create the folder only in the case it does not exist?

     -p      Create intermediate directories as required.  If this option is not specified, the full path prefix of each operand must already exist.  On the other hand, with this option
             specified, no error will be reported if a directory given as an operand already exists.  Intermediate directories are created with permission bits of rwxrwxrwx (0777) as mod-
             ified by the current umask, plus write and search permission for the owner.


# The name of the suite is calculated based in your script name
suite=""
Expand Down