Skip to content

Commit

Permalink
compare enable_shortcuts to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jan 5, 2024
1 parent 69cddad commit 03cd520
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions constructor/header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ KEEP_PKGS=1
KEEP_PKGS=0
#endif
SKIP_SCRIPTS=0
#if enable_shortcuts
#if enable_shortcuts == "true"
SKIP_SHORTCUTS=0
#endif
TEST=0
Expand All @@ -73,7 +73,7 @@ Installs ${INSTALLER_NAME} ${INSTALLER_VER}
-p PREFIX install prefix, defaults to $PREFIX
#endif
-s skip running pre/post-link/install scripts
#if enable_shortcuts
#if enable_shortcuts == 'true'
-m disable the creation of menu items / shortcuts
#endif
-u update an existing installation
Expand All @@ -86,7 +86,7 @@ Installs ${INSTALLER_NAME} ${INSTALLER_VER}
# However getopt is not standardized and the version on Mac has different
# behaviour. getopts is good enough for what we need :)
# More info: https://unix.stackexchange.com/questions/62950/
#if enable_shortcuts
#if enable_shortcuts == "true"
while getopts "bifhkp:smut" x; do
#else
while getopts "bifhkp:sut" x; do
Expand Down Expand Up @@ -114,7 +114,7 @@ while getopts "bifhkp:sut" x; do
s)
SKIP_SCRIPTS=1
;;
#if enable_shortcuts
#if enable_shortcuts == "true"
m)
SKIP_SHORTCUTS=1
;;
Expand Down

0 comments on commit 03cd520

Please sign in to comment.