98-source-repositories tries to return from script
In 8b2325118f we added a line
so that 98-source-repositories tries to return from the top
level script (not from within a function).
Also, remove the return 1 within the function as well
because we just want to continue in these cases.
Change-Id: I66eddc12208b278594a0a8d8676c38d72045ca75
			
			
This commit is contained in:
		| @@ -53,7 +53,7 @@ function get_repos_for_element(){ | |||||||
|                 if [ ! -e "$CACHE_PATH" ] ; then |                 if [ ! -e "$CACHE_PATH" ] ; then | ||||||
|                     mv -n $OLD_CACHE_PATH $CACHE_PATH |                     mv -n $OLD_CACHE_PATH $CACHE_PATH | ||||||
|                 else |                 else | ||||||
|                     echo "Not replacing new cache location with old cache" && return 1 |                     echo "Not replacing new cache location with old cache" | ||||||
|                 fi |                 fi | ||||||
|             fi |             fi | ||||||
|  |  | ||||||
| @@ -164,7 +164,7 @@ if [ -e "$OLD_CACHE_BASE" ] ; then | |||||||
|     if [ ! -e "$CACHE_BASE" ] ; then |     if [ ! -e "$CACHE_BASE" ] ; then | ||||||
|         mv -n $OLD_CACHE_BASE $CACHE_BASE |         mv -n $OLD_CACHE_BASE $CACHE_BASE | ||||||
|     else |     else | ||||||
|         echo "Not replacing new cache location with old cache" && return 1 |         echo "Not replacing new cache location with old cache" | ||||||
|     fi |     fi | ||||||
| fi | fi | ||||||
| mkdir -p $CACHE_BASE | mkdir -p $CACHE_BASE | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dan Prince
					Dan Prince