projects
/
EVA-2020-02-2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b96b7e0
)
Create RESOURCES_DIR early
author
Philip Howard
<phil@pimoroni.com>
Wed, 10 Jul 2019 10:31:34 +0000
(11:31 +0100)
committer
GitHub
<noreply@github.com>
Wed, 10 Jul 2019 10:31:34 +0000
(11:31 +0100)
install.sh
patch
|
blob
|
blame
|
history
diff --git
a/install.sh
b/install.sh
index b7ed9cca7e68a6ac0bb943c10634376069316259..1fec5c846159ade49cfe2c592feba66e29b7255b 100755
(executable)
--- a/
install.sh
+++ b/
install.sh
@@
-126,6
+126,8
@@
eval $CONFIG_VARS
RESOURCES_DIR=$RESOURCES_TOP_DIR/$LIBRARY_NAME
UNINSTALLER=$RESOURCES_DIR/uninstall.sh
RESOURCES_DIR=$RESOURCES_TOP_DIR/$LIBRARY_NAME
UNINSTALLER=$RESOURCES_DIR/uninstall.sh
+mkdir -p $RESOURCES_DIR
+
cat << EOF > $UNINSTALLER
printf "It's recommended you run these steps manually.\n"
printf "If you want to run the full script, open it in\n"
cat << EOF > $UNINSTALLER
printf "It's recommended you run these steps manually.\n"
printf "If you want to run the full script, open it in\n"
@@
-181,7
+183,6
@@
done
if [ -d "examples" ]; then
if confirm "Would you like to copy examples to $RESOURCES_DIR?"; then
inform "Copying examples to $RESOURCES_DIR"
if [ -d "examples" ]; then
if confirm "Would you like to copy examples to $RESOURCES_DIR?"; then
inform "Copying examples to $RESOURCES_DIR"
- mkdir -p $RESOURCES_DIR
cp -r examples/ $RESOURCES_DIR
echo "rm -r $RESOURCES_DIR" >> $UNINSTALLER
fi
cp -r examples/ $RESOURCES_DIR
echo "rm -r $RESOURCES_DIR" >> $UNINSTALLER
fi