]> p2p-next.cs.pub.ro Git - cs-p2p-next.git/commitdiff
next-share: use quotes for proper escaping in start scripts
authorP2P-Next User <p2p@p2p-next-03.grid.pub.ro>
Sun, 28 Nov 2010 16:27:49 +0000 (18:27 +0200)
committerP2P-Next User <p2p@p2p-next-01.grid.pub.ro>
Mon, 13 Dec 2010 09:24:30 +0000 (11:24 +0200)
instrumentation/next-share/start-next-share
instrumentation/next-share/start-swarm-player

index ed4874aa1ee286d71ab61b07372fdd51c8c14b1d..10b4e448349bee5f741b2a33fe4f1b67ff91c9d1 100755 (executable)
@@ -10,6 +10,7 @@ if test $# -ne 1; then
        exit 1
 fi
 
-torrent_file=$1
+torrent_file="$1"
 #PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py --output-dir /home/p2p --download-limit 50 $torrent_file
-PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py --output-dir /home/p2p $torrent_file
+echo "torrent_file = $1"
+PYTHONPATH=. python2.5 BaseLib/Tools/cmdlinedl.py --output-dir /home/p2p "$torrent_file"
index 0e5782329c8fe2364dd47548cd9aa69511095b62..0dfc69172dc4509213a99c64ff09fdbd4b628b05 100755 (executable)
@@ -10,5 +10,5 @@ if test $# -ne 1; then
        exit 1
 fi
 
-video_torrent_file=$1
-PYTHONPATH=. python BaseLib/Player/swarmplayer.py $video_torrent_file
+video_torrent_file="$1"
+PYTHONPATH=. python BaseLib/Player/swarmplayer.py "$video_torrent_file"