initial commit
This commit is contained in:
23
com.synology.TMDBExample/loader.sh
Normal file
23
com.synology.TMDBExample/loader.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
BASEDIR=$(dirname $0)
|
||||
ARGV=""
|
||||
|
||||
escape()
|
||||
{
|
||||
local ARG=$(echo -E $@ | sed "s/'/'\\\\''/g")
|
||||
echo \'$ARG\'
|
||||
}
|
||||
|
||||
|
||||
i=1
|
||||
while [ $i -le $# ]; do
|
||||
eval ARG=\$\(escape \${$i}\)
|
||||
ARGV="$ARGV $ARG"
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
|
||||
|
||||
eval "/usr/bin/env python3 "\
|
||||
"$BASEDIR/search.py $ARGV"
|
||||
|
||||
Reference in New Issue
Block a user