Skip to content

Commit

Permalink
Allow spaces in DMENU_CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
Toqozz committed Oct 27, 2020
1 parent 41be28c commit 4d8d591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slip
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

VERSION="2.0.4"
VERSION="2.0.5"

# Sane defaults in case of not being set in the config / config not existing.
CREDENTIALS_FILE="$HOME/.config/slip/credentials"
Expand Down Expand Up @@ -225,7 +225,7 @@ function stop_rec() {
clip_clear
name=$(upload_gfycat "$tfn")
url="https://gfycat.com/$name"
notify "Uploading to $url ..."
notify "Uploading to $url "
echo "$url"
echo -n "$url" | xsel -bi # Read to clipboard.
elif [ "$choice" = "upload (imgur)" ]; then
Expand Down Expand Up @@ -347,8 +347,8 @@ elif [ "$1" = "-q" -o "$1" = "--stop" ]; then
main "stop"
elif [ $# == 0 ]; then
if [ -a "$RECORD_PIDFILE" ]; then
main $($DMENU_CMD <<< "$DMENU_RECORD_OPTS")
main $(eval "$DMENU_CMD" <<< "$DMENU_RECORD_OPTS")
else
main $($DMENU_CMD <<< "$DMENU_OPTS")
main $(eval "$DMENU_CMD" <<< "$DMENU_OPTS")
fi
fi

0 comments on commit 4d8d591

Please sign in to comment.