Make sure we're in the queue directory
authorSteve McIntyre <steve@einval.com>
Thu, 25 Oct 2018 17:06:47 +0000 (18:06 +0100)
committerSteve McIntyre <steve@einval.com>
Thu, 25 Oct 2018 17:06:47 +0000 (18:06 +0100)
bin/requeue

index f825037..9eab100 100755 (executable)
@@ -8,6 +8,8 @@ LOGS=/home/build/logs
 SOURCES=/mirror/debian/dists/unstable/main/source/Sources.gz
 MAX_BUILD_NUM=$(ls -1 $IN | tail -1 | sed 's,\..*$,,')
 
+cd $IN
+
 for file in $@; do
     if [ ! -e $file ] && [ -e $file.proc ]; then
        file=$file.proc