mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 09:59:47 -05:00
* Merge from vscode 2c306f762bf9c3db82dc06c7afaa56ef46d72f79 * Fix breaks * Extension management fixes * Fix breaks in windows bundling * Fix/skip failing tests * Update distro * Add clear to nuget.config * Add hygiene task * Bump distro * Fix hygiene issue * Add build to hygiene exclusion * Update distro * Update hygiene * Hygiene exclusions * Update tsconfig * Bump distro for server breaks * Update build config * Update darwin path * Add done calls to notebook tests * Skip failing tests * Disable smoke tests
24 lines
730 B
Bash
Executable File
24 lines
730 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This file restores the results of the "prepare.sh" into their proper locations
|
|
# once the container has been created. It runs as a postCreateCommand which
|
|
# in GitHub Codespaces occurs parallel to other startup activities and does not
|
|
# really add to the overal startup time given how quick the operation ends up being.
|
|
|
|
set -e
|
|
|
|
SOURCE_FOLDER="$(cd "${1:-"."}" && pwd)"
|
|
CACHE_FOLDER="${2:-"/usr/local/etc/devcontainer-cache"}"
|
|
|
|
if [ ! -d "${CACHE_FOLDER}" ]; then
|
|
echo "No cache folder found."
|
|
exit 0
|
|
fi
|
|
|
|
echo "[$(date)] Expanding $(du -h "${CACHE_FOLDER}/cache.tar") file to ${SOURCE_FOLDER}..."
|
|
cd "${SOURCE_FOLDER}"
|
|
tar -xf "${CACHE_FOLDER}/cache.tar"
|
|
rm -f "${CACHE_FOLDER}/cache.tar"
|
|
echo "[$(date)] Done!"
|
|
|