File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- [ $# -eq 0 ] && { echo " Usage: $0 <full path to APPLICATION checkout>" ; exit 1; }
3+ UBUNTU_VERSION=" 18.04"
4+
5+ [ $# -eq 0 ] && { echo " Usage: $0 <full path to APPLICATION checkout> <version>" ; exit 1; }
6+
7+ [ $# -eq 2 ] && UBUNTU_VERSION=" $2 "
48
59confirm () {
610 read -r -p " ${1:- Are you sure? [y/N]} " response
@@ -37,7 +41,7 @@ export CONAN_SYSREQUIRES_MODE=enabled
3741
3842header " Prepare Cache for update"
3943
40- confirm " Clean cache? [y/N]" && cd ${CONAN_USER_HOME} && git clean -df && git checkout . && git checkout host-Linux-target-Linux-ubuntu-18.04 -master
44+ confirm " Clean cache? [y/N]" && cd ${CONAN_USER_HOME} && git clean -df && git checkout . && git checkout host-Linux-target-Linux-ubuntu-${UBUNTU_VERSION} -master
4145
4246confirm " Update cache? [y/N]" && cd ${CONAN_USER_HOME} && git pull && git lfs pull
4347
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ UBUNTU_VERSION=" 16.04"
4+
5+ [ $# -eq 0 ] && { echo " Usage: $0 <full path to APPLICATION checkout>" ; exit 1; }
6+
7+ ./update_cache_linux.sh " $1 " " $UBUNTU_VERSION "
You can’t perform that action at this time.
0 commit comments