Subversion Repositories stackman

Rev

Rev 4 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 5
Line 17... Line 17...
17
	IS_BATCHMODE=0
17
	IS_BATCHMODE=0
18
fi
18
fi
19
 
19
 
20
# Read in the system identifier
20
# Read in the system identifier
21
if [ $IS_BATCHMODE -eq 0 ]; then
21
if [ $IS_BATCHMODE -eq 0 ]; then
22
	echo "Terminal Stackman 2.4"
22
	echo "Terminal Stackman 2.4.1"
23
	echo "(C) 2013-2019 ViaThinkSoft"
23
	echo "(C) 2013-2020 ViaThinkSoft"
24
	echo ""
24
	echo ""
25
 
25
 
26
	if [ -f ~/".autorun" ]; then
26
	if [ -f ~/".autorun" ]; then
27
		echo "Starting autorun script..."
27
		echo "Starting autorun script..."
28
		~/".autorun"
28
		~/".autorun"
Line 88... Line 88...
88
	if [[ $? -gt 0 ]]; then
88
	if [[ $? -gt 0 ]]; then
89
		# For example end of stream -- exit
89
		# For example end of stream -- exit
90
		break
90
		break
91
	fi
91
	fi
92
 
92
 
-
 
93
	# No empty lines
-
 
94
	if [[ "$inp" == "" ]]; then
-
 
95
		continue
-
 
96
	fi
-
 
97
 
93
	# Log to journal
98
	# Log to journal
94
	echo "$inp" >> ~/.stam_history
99
	echo "$inp" >> ~/.stam_history
95
	if [ -f ~/.stam_history_mir ]; then
100
	if [ -f ~/.stam_history_mir ]; then
96
		echo "$inp" >> ~/.stam_history_mir
101
		echo "$inp" >> ~/.stam_history_mir
97
	fi
102
	fi
Line 291... Line 296...
291
			echo_red "    If you want to add an entry, Use '--' to escape the first character." 1<&2
296
			echo_red "    If you want to add an entry, Use '--' to escape the first character." 1<&2
292
		fi
297
		fi
293
	else
298
	else
294
		# (Blind) appender mode
299
		# (Blind) appender mode
295
 
300
 
296
		# Keine leeren Zeilen (ist das OK?)
-
 
297
		if [[ "$inp" == "" ]]; then
-
 
298
			continue
-
 
299
		fi
-
 
300
 
-
 
301
		# Add single entry (aps)
301
		# Add single entry (aps)
302
		OUT=$( "$DIR"/aps "$CURCAT" "$inp" )
302
		OUT=$( "$DIR"/aps "$CURCAT" "$inp" )
303
		EC=$?
303
		EC=$?
304
		echo -n "$OUT"
304
		echo -n "$OUT"
305
		if [ $EC -ne 0 ]; then
305
		if [ $EC -ne 0 ]; then