Skip to content
Snippets Groups Projects
Unverified Commit 7145e056 authored by Ritesh Raj Sarraf's avatar Ritesh Raj Sarraf
Browse files

Fix syntax error in shell script


Signed-off-by: default avatarRitesh Raj Sarraf <ritesh.sarraf@collabora.com>
parent 7cc973b1
No related branches found
No related tags found
No related merge requests found
......@@ -68,12 +68,12 @@ Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
done
-if [[ "${0##*/}" == 'installkernel' ]]; then
++if [ "${0%installkernel}" != "${0}" ]; then
+if [ "${0%installkernel}" != "${0}" ]; then
COMMAND='add'
- # make install doesn't pass any parameter wrt initrd handling
- INITRD_OPTIONS=()
++elif [ "${0%removekernel}" != "${0}" ]; then
++ COMMAND='remove'
+elif [ "${0%removekernel}" != "${0}" ]; then
+ COMMAND='remove'
else
COMMAND="$1"
shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment