Skip to content

Commit

Permalink
Create ~/Pictures if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
simoniz0r committed Nov 23, 2018
1 parent 1ef1c36 commit 8675fad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yadshot.sh
Expand Up @@ -68,7 +68,10 @@ if [ ! -d "$HOME/.config/yadshot/plugins" ]; then
echo "SS_DELAY="\"$SS_DELAY\""" >> ~/.config/yadshot/yadshot.conf
echo "YSHOT_IMAGE_PLUGIN="\"$YSHOT_IMAGE_PLUGIN\""" >> ~/.config/yadshot/yadshot.conf
fi

# create ~/Pictures if it does not exist
if [ ! -d "$HOME/Pictures" ]; then
mkdir -p "$HOME"/Pictures
fi
# add handler to manage process shutdown
function on_exit() {
echo "quit" >&3
Expand Down Expand Up @@ -418,7 +421,7 @@ function startfunc() {
}
# help function
function yadshothelp() {
printf '%s\n' "yadshot v0.2.04
printf '%s\n' "yadshot v0.2.05
yadshot provides a GUI frontend for taking screenshots with
ImageMagick/slop or ffmpeg/slop. yadshot can upload screenshots,
files, and pastes to Filebin.net.
Expand Down

0 comments on commit 8675fad

Please sign in to comment.