Skip to content
Snippets Groups Projects

Correct handling of missing .bash_history

Merged Martyn Welch requested to merge (removed):T4802 into master
1 unresolved thread

Signed-off-by: Martyn Welch martyn.welch@collabora.co.uk

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
60 60 # Touch .bash_history, which we use in some tests, if it's not there.
61 61 bash_history="/home/${CHAIWALA_USER}/.bash_history"
62 62 if [ ! -r ${bash_history} ]; then
63 RET=$( sudo -u ${CHAIWALA_USER} touch ${bash_history} )
64 if [ $RET != 0 ]; then
63 sudo -u ${CHAIWALA_USER} touch ${bash_history}
64 RET=$?
65 if [ "$RET" != "0" ]; then
  • Martyn Welch resolved all discussions

    resolved all discussions

  • merged

  • Martyn Welch mentioned in commit 4c88dcb2

    mentioned in commit 4c88dcb2

  • Please register or sign in to reply
    Loading