Skip to content
Snippets Groups Projects
Commit 0f2fb846 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check that patchwork directory gets created

parent f1199d0d
No related branches found
No related tags found
No related merge requests found
......@@ -568,6 +568,9 @@ install_patchwork() {
get_npm_arch
git clone $PATCHWORK_REPO $rootdir/etc/patchwork
if [ ! -d $rootdir/etc/patchwork ]; then
exit 7823520
fi
cd $rootdir/etc/patchwork
git checkout $PATCHWORK_COMMIT -b $PATCHWORK_COMMIT
......@@ -581,12 +584,6 @@ npm install --arch=$NPM_ARCH git-ssb
EOF
chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
chroot "$rootdir" /usr/bin/install_patchwork
if [ ! -f /usr/bin/patchwork ]; then
if [ ! -f /usr/local/bin/patchwork ]; then
echo $'Unable to install SSB Patchwork peer'
exit 783524
fi
fi
rm $rootdir/usr/bin/install_patchwork
echo '#!/bin/bash' > $rootdir/usr/bin/start_patchwork
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment