- if [[ $TARGET && $(check_for_static $TARGET) == $TRUE ]]
- then
- log "[NOTICE] - Using specified target path: '$TARGET'"
-
- if [[ $INTERACTIVE == $TRUE ]]; then
- if [[ $(confirm "Is this correct?") == $FALSE ]]; then
- echo ""
- exit 1
- else
- echo ""
- fi
- fi
-
- TARGET="$TARGET/static"
- else
- if [[ $(check_for_static $DEFAULT_TARGET) == $TRUE ]]
- then
- log "[NOTICE] - Target not set, using default path: '$DEFAULT_TARGET'"
-
- if [[ $INTERACTIVE == $TRUE ]]
- then
- log ""
- if [[ $(confirm "Is this ok?") == $FALSE ]]
- then
- echo ""
- exit 1
- else
- echo ""
- fi
- fi
-
- TARGET="$DEFAULT_TARGET/static"
- else
- log ""
- log "[ERROR] - Couldn't find folder 'static/' in the target path: '$TARGET'"
- log "[ERROR] - (Are you sure this folder contains gitweb?)"
- exit 1
- fi
- fi
+ if [[ $TARGET && $(check_for_static $TARGET) == $TRUE ]]
+ then
+ log "[NOTICE] - Using specified target path: '$TARGET'"
+
+ if [[ $INTERACTIVE == $TRUE ]]; then
+ if [[ $(confirm "Is this correct?") == $FALSE ]]; then
+ echo ""
+ exit 1
+ else
+ echo ""
+ fi
+ fi
+
+ TARGET="$TARGET/static"
+ else
+ if [[ $(check_for_static $DEFAULT_TARGET) == $TRUE ]]
+ then
+ log "[NOTICE] - Target not set, using default path: '$DEFAULT_TARGET'"
+
+ if [[ $INTERACTIVE == $TRUE ]]
+ then
+ log ""
+ if [[ $(confirm "Is this ok?") == $FALSE ]]
+ then
+ echo ""
+ exit 1
+ else
+ echo ""
+ fi
+ fi
+
+ TARGET="$DEFAULT_TARGET/static"
+ else
+ log ""
+ log "[ERROR] - Couldn't find folder 'static/' in the target path: '$TARGET'"
+ log "[ERROR] - (Are you sure this folder contains gitweb?)"
+ exit 1
+ fi
+ fi