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

Issue 1610021: Add sudo_clobber and sudo_append functions so that we can "echo" (Closed)

Created:
10 years, 8 months ago by tedbo
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_googlegroups.com
Visibility:
Public.

Description

Add sudo_clobber and sudo_append functions so that we can "echo" and "cat" stuff and pipe it to something that can write to a file as root. For example: echo "foo" | sudo_append /tmp/bar will append "foo" to the file /tmp/bar as root. While echo "foo" | sudo_clobber /tmp/bar will truncate /tmp/bar and then write "foo" to the file.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M src/scripts/common.sh View 3 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
tedbo
As you requested :-)
10 years, 8 months ago (2010-04-12 17:28:28 UTC) #1
Mandeep Singh Baines
10 years, 8 months ago (2010-04-12 17:49:34 UTC) #2
LGTM. Thanks!

Powered by Google App Engine
This is Rietveld 408576698