Skip to content

Commit

Permalink
snapcraft/wrappers/kmod: fix typo in basename emulation
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
(cherry picked from commit cda2184)
  • Loading branch information
simondeziel authored and tomponline committed Jul 11, 2024
1 parent a4bd1c4 commit a6c103b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapcraft/wrappers/kmod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# Turn `/usr/sbin/foo` into `foo`
# Similar to `basename` but using variable substitution instead of external executable
NAME="${0##/*}"
NAME="${0##*/}"

# Detect base name
SNAP_BASE="$(sed -n '/^name:/ s/^name:\s*\(core[0-9]\{2\}\)/\1/p' /meta/snap.yaml)"
Expand Down

0 comments on commit a6c103b

Please sign in to comment.