Skip to content

Commit

Permalink
tweaks to userscript.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Sep 24, 2011
1 parent 55aeaa8 commit beb1f09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uzbl/data/scripts/userscript.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/sh

env |grep UZBL 1>&2

do_scripts() {
scripts_dir="$1"
IFS="
"
# Loop over all userscripts in the directory
for SCRIPT in `grep -lx "\s*//\s*==UserScript==\s*" "$scripts_dir"/*`; do
SCRIPT="`readlink -en "$SCRIPT"`"
# Extract metadata chunk
META="`sed -ne '/^\s*\/\/\s*==UserScript==\s*$/,/^\s*\/\/\s*==\/UserScript==\s*$/p' "$SCRIPT"`"
SHOULD_RUN=false # Assume this script will not be included
Expand Down

0 comments on commit beb1f09

Please sign in to comment.