Skip to content

session-wrapper: fix "unary operand" error#89

Merged
sergio-costas merged 1 commit intocanonical:24from
sergio-costas:more-fixes-for-shell-script
Apr 21, 2025
Merged

session-wrapper: fix "unary operand" error#89
sergio-costas merged 1 commit intocanonical:24from
sergio-costas:more-fixes-for-shell-script

Conversation

@sergio-costas
Copy link
Copy Markdown

When no parameter is passed to the session wrapper, the comparison is done between "nothing" and a string, so the syntax is wrong because it is if [ = 'KDE' ]. To fix this, the $session_type variable in the left side of the comparison must be enclosed between double quotes.

When no parameter is passed to the session wrapper, the
comparison is done between "nothing" and a string, so the
syntax is wrong because it is `if [  = 'KDE' ]`. To fix this,
the $session_type variable in the left side of the comparison
must be enclosed between double quotes.
@sergio-costas sergio-costas requested a review from 3v1n0 March 27, 2025 11:22
@jbicha jbicha self-requested a review April 21, 2025 13:32
@sergio-costas sergio-costas merged commit decbc41 into canonical:24 Apr 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants