File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ while getopts " v:" opt; do
4+ case $opt in
5+ v) version=" $OPTARG "
6+ ;;
7+ \? ) echo " Invalid option -$OPTARG " >&2
8+ exit 1
9+ ;;
10+ esac
11+
12+ case $OPTARG in
13+ -* ) echo " Option $opt needs a valid argument"
14+ exit 1
15+ ;;
16+ esac
17+ done
18+
19+ if [[ -z $version ]]; then
20+ echo " Please provide version using '-v'" ;
21+ exit 1
22+ fi
23+
24+ VERSION=$version
25+
326# set +e to prevent quilt from exiting when no patches popped
427set +e
528
@@ -12,7 +35,7 @@ quilt pop -a
1235rm -rf .pc
1336
1437# empty vscode module
15- printf " \n======== Delete data is vs code module if present ========\n"
38+ printf " \n======== Delete data in vs code module if present ========\n"
1639rm -rf ${PROJ_ROOT} /vscode/.
1740
1841# re-enable -e to allow exiting on error
@@ -47,7 +70,7 @@ sh ${PROJ_ROOT}/scripts/postinstall.sh
4770
4871# Build tarball for conda feedstock from vscode dir
4972printf " \n======== Build Tarball for Conda Feedstock ========\n"
50- bash ${PROJ_ROOT} /scripts/create_code_editor_tarball.sh -v 1.2.0
73+ bash ${PROJ_ROOT} /scripts/create_code_editor_tarball.sh -v ${VERSION}
5174
5275# Copy resources
5376printf " \n======== Copy resources ========\n"
You can’t perform that action at this time.
0 commit comments