Skip to content

Commit

Permalink
MOD: WATERMARK.md watermark.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pforret committed Apr 14, 2023
1 parent da20854 commit 106ac08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions WATERMARK.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Now you need to type the following lines (only the ones that don't start with #)
# procedure explained on https://www.basher.it/ or https://github.com/basherpm/basher/blob/master/README.md
curl -s https://raw.githubusercontent.com/basherpm/basher/master/install.sh | bash

# now open a new bash session, where the basher scripts cabn be easily found
# now open a new bash session, so that the basher scripts can be easily found
bash

# let's test if basher was properly installed
Expand All @@ -41,11 +41,11 @@ splashmark
# (...)
```
Put the `watermark.sh` script in the folder of your exported, but not yet watermarked photos.
Make sure that when you doubleclick the .sh script, it will open with the `terminal` program
Make sure that when you double-click the .sh script, it will open with the `terminal` program

![](assets/openwith.png)

If you computer opens .sh files with a text editor (as is the default), then choose `Terminal` via the 'Other...' popup. `Terminal` is located in the 'Utilities' subfolder of Applications.
If your computer opens .sh files with a text editor (as is the default), then choose `Terminal` via the 'Other...' popup. `Terminal` is located in the 'Utilities' subfolder of Applications.

![](assets/openwith2.png)

Expand Down
7 changes: 6 additions & 1 deletion watermark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

folder=$(dirname "$0")
cd "$folder" || exit
[[ ! $(command -v splashmark) ]] && echo "Requires pforret/splashmark" && exit 1
if [[ ! $(command -v splashmark) ]] ; then
echo "### WARNING"
echo "Requires pforret/splashmark"
echo "Follow instructions on https://github.com/pforret/splashmark/blob/master/WATERMARK.md"
exit 1
fi
year=$(date +%Y)
name="Peter Forret"

Expand Down

0 comments on commit 106ac08

Please sign in to comment.