-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from ontodev/prototype-guess
Prototype guess operation
- Loading branch information
Showing
18 changed files
with
1,055 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env sh | ||
|
||
if [ -d $1 -a ! -z "$(ls -A $1)" ] | ||
then | ||
printf "$1 already exists and contains the following files: $(ls -A -m -w 0 $1)\nAre you sure (y/n)? " | ||
read enter | ||
if [ $enter = 'y' ] | ||
then | ||
exit 0 | ||
else | ||
echo "Understood. Exiting with error code." | ||
exit 1 | ||
fi | ||
fi |
Oops, something went wrong.