Check that patchwork directory gets created
This commit is contained in:
parent
f1199d0d42
commit
0f2fb846b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue