Skip to content

Commit b58bac2

Browse files
authored
Create RESOURCES_DIR early
1 parent b96b7e0 commit b58bac2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ eval $CONFIG_VARS
126126
RESOURCES_DIR=$RESOURCES_TOP_DIR/$LIBRARY_NAME
127127
UNINSTALLER=$RESOURCES_DIR/uninstall.sh
128128
129+
mkdir -p $RESOURCES_DIR
130+
129131
cat << EOF > $UNINSTALLER
130132
printf "It's recommended you run these steps manually.\n"
131133
printf "If you want to run the full script, open it in\n"
@@ -181,7 +183,6 @@ done
181183
if [ -d "examples" ]; then
182184
if confirm "Would you like to copy examples to $RESOURCES_DIR?"; then
183185
inform "Copying examples to $RESOURCES_DIR"
184-
mkdir -p $RESOURCES_DIR
185186
cp -r examples/ $RESOURCES_DIR
186187
echo "rm -r $RESOURCES_DIR" >> $UNINSTALLER
187188
fi

0 commit comments

Comments
 (0)