diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> | 2012-03-03 23:35:29 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> | 2012-03-03 23:35:29 +0000 |
commit | 74a56c130ec54563e1344c9502e8b49ffd848862 (patch) | |
tree | fadbbdc90d3f4930c15bf9cc4881e31df15221cb | |
parent | Improve handling of mtime. (diff) | |
download | python-updater-74a56c130ec54563e1344c9502e8b49ffd848862.tar.gz python-updater-74a56c130ec54563e1344c9502e8b49ffd848862.tar.bz2 python-updater-74a56c130ec54563e1344c9502e8b49ffd848862.zip |
Fix handling of sed.
-rwxr-xr-x | python-updater | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python-updater b/python-updater index d34d916..fc3294f 100755 --- a/python-updater +++ b/python-updater @@ -489,7 +489,10 @@ while (($#)); do done if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then - alias sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed" + sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed" + if [[ -x "${sed}" ]]; then + alias sed="${sed}" + fi fi if has_version "=dev-lang/python-2*"; then |