mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-08 09:44:32 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60f8286825 | |||
| 7deab5d18e | |||
| 4fd89ab155 |
@@ -65,11 +65,7 @@ export default async (src: string = 'deps') => {
|
||||
|
||||
const source = path.join(config.rootPath, src);
|
||||
const watcher = chokidar.watch(source, {
|
||||
ignored: [
|
||||
/(^|[\/\\])\../, // ignore dotfiles
|
||||
/(^|[\/\\])node_modules([\/\\]|$)/, // ignore node_modules
|
||||
/(^|[\/\\])\.git([\/\\]|$)/, // ignore .git
|
||||
],
|
||||
ignored: /(^|[\/\\])\../, // ignore dotfiles
|
||||
persistent: true,
|
||||
});
|
||||
|
||||
|
||||
@@ -258,8 +258,16 @@ git_clone_scripts() {
|
||||
|
||||
set_proxy "$proxy"
|
||||
|
||||
# Set TMPDIR to /tmp to avoid "unable to get random bytes" error in some Docker environments
|
||||
local original_tmpdir="${TMPDIR:-}"
|
||||
export TMPDIR=/tmp
|
||||
git clone -q --depth=1 $part_cmd $url $dir
|
||||
exit_status=$?
|
||||
if [[ -n "$original_tmpdir" ]]; then
|
||||
export TMPDIR="$original_tmpdir"
|
||||
else
|
||||
unset TMPDIR
|
||||
fi
|
||||
|
||||
unset_proxy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user