Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: man/src/demo_repo.sh

Issue 197213008: Invoke the bash shell via /usr/bin/env so that these scripts run on operating systems without /bin/… (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Use "/usr/bin/env bash" for these files too. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « man/src/common_demo_functions.sh ('k') | man/src/depot_tools_tutorial.demo.walkthrough.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/usr/bin/env bash
2 2
3 . common_demo_functions.sh 3 . common_demo_functions.sh
4 4
5 TDIR=$(mktemp --tmpdir -d demo_repo.XXXXXXXXXX) 5 TDIR=$(mktemp --tmpdir -d demo_repo.XXXXXXXXXX)
6 trap "rm -rf $TDIR" EXIT 6 trap "rm -rf $TDIR" EXIT
7 7
8 cd $TDIR 8 cd $TDIR
9 silent git clone "$REMOTE" . 9 silent git clone "$REMOTE" .
10 silent git reset --hard stage_1 10 silent git reset --hard stage_1
11 silent git update-ref refs/remotes/origin/master stage_1 11 silent git update-ref refs/remotes/origin/master stage_1
(...skipping 22 matching lines...) Expand all
34 silent git new-branch fixit 34 silent git new-branch fixit
35 c "Epic README update" 35 c "Epic README update"
36 c "Add neat feature" 36 c "Add neat feature"
37 37
38 silent git new-branch --upstream_current frozen_branch 38 silent git new-branch --upstream_current frozen_branch
39 c "a deleted file" 39 c "a deleted file"
40 c "modfile" 40 c "modfile"
41 c "FREEZE.unindexed" 41 c "FREEZE.unindexed"
42 fi 42 fi
43 43
OLDNEW
« no previous file with comments | « man/src/common_demo_functions.sh ('k') | man/src/depot_tools_tutorial.demo.walkthrough.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698