Skip to content

Commit

Permalink
Update 610_save_capabilities.sh
Browse files Browse the repository at this point in the history
Use simpler and faster syntax STRING+=" additional words"
see #2848
  • Loading branch information
jsmeix committed Aug 10, 2022
1 parent 2c1d26e commit 43f0834
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ has_binary getcap && has_binary setcap || Error "getcap and setcap are needed wh

# Empty values must be avoided for egrep -v because egrep -v '' or egrep -v 'something|' matches all:
exclude_directories="$BUILD_DIR"
test "$ISO_DIR" && exclude_directories="$exclude_directories|$ISO_DIR"
test "$ISO_DIR" && exclude_directories+="|$ISO_DIR"

# Be backward compatible:
is_true "$NETFS_RESTORE_CAPABILITIES" && NETFS_RESTORE_CAPABILITIES=( '/' )
Expand Down

0 comments on commit 43f0834

Please sign in to comment.