mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
[Scripts] Do some fixes.
This commit is contained in:
parent
83995a738a
commit
b30b50dc5a
6 changed files with 6 additions and 6 deletions
|
@ -64,7 +64,7 @@ then
|
||||||
sed -i "s|${ROFI_FB_CUR_DIR}|##deleted##|g" "${ROFI_FB_HISTORY_FILE}"
|
sed -i "s|${ROFI_FB_CUR_DIR}|##deleted##|g" "${ROFI_FB_HISTORY_FILE}"
|
||||||
sed -i '/##deleted##/d' "${ROFI_FB_HISTORY_FILE}"
|
sed -i '/##deleted##/d' "${ROFI_FB_HISTORY_FILE}"
|
||||||
echo "${ROFI_FB_CUR_DIR}" >> "${ROFI_FB_HISTORY_FILE}"
|
echo "${ROFI_FB_CUR_DIR}" >> "${ROFI_FB_HISTORY_FILE}"
|
||||||
if [ $(cat "${ROFI_FB_HISTORY_FILE}" | wc -l) -gt ${ROFI_FB_HISTORY_MAXCOUNT} ]
|
if [ $( wc -l < "${ROFI_FB_HISTORY_FILE}" ) -gt ${ROFI_FB_HISTORY_MAXCOUNT} ]
|
||||||
then
|
then
|
||||||
sed -i 1d "${ROFI_FB_HISTORY_FILE}"
|
sed -i 1d "${ROFI_FB_HISTORY_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -23,7 +23,7 @@ xdotool key Return
|
||||||
# Get result, kill xvfb
|
# Get result, kill xvfb
|
||||||
wait ${RPID}
|
wait ${RPID}
|
||||||
RETV=$?
|
RETV=$?
|
||||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
OUTPUT=$( tr '\n' ' ' < output.txt )
|
||||||
if [ "${OUTPUT}" != 'coffee ' ]
|
if [ "${OUTPUT}" != 'coffee ' ]
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cat /dev/null | rofi -dmenu &
|
rofi -dmenu & < /dev/null
|
||||||
RPID=$!
|
RPID=$!
|
||||||
sleep 4
|
sleep 4
|
||||||
xdotool key Return
|
xdotool key Return
|
||||||
|
|
|
@ -24,7 +24,7 @@ then
|
||||||
echo "thread apply all bt" | gdb rofi core.*
|
echo "thread apply all bt" | gdb rofi core.*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
OUTPUT=$( tr '\n' ' ' < output.txt )
|
||||||
if [ "${OUTPUT}" != 'noot mies ' ]
|
if [ "${OUTPUT}" != 'noot mies ' ]
|
||||||
then
|
then
|
||||||
echo "Got: '${OUTPUT}' expected 'noot mies '"
|
echo "Got: '${OUTPUT}' expected 'noot mies '"
|
||||||
|
|
|
@ -21,7 +21,7 @@ xdotool key Escape
|
||||||
# Get result, kill xvfb
|
# Get result, kill xvfb
|
||||||
wait ${RPID}
|
wait ${RPID}
|
||||||
RETV=$?
|
RETV=$?
|
||||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
OUTPUT=$(tr '\n' ' ' < output.txt)
|
||||||
if [ "${OUTPUT}" != '' ]
|
if [ "${OUTPUT}" != '' ]
|
||||||
then
|
then
|
||||||
echo "Got: '${OUTPUT}' expected nothing"
|
echo "Got: '${OUTPUT}' expected nothing"
|
||||||
|
|
|
@ -17,7 +17,7 @@ xdotool key Return
|
||||||
# Get result, kill xvfb
|
# Get result, kill xvfb
|
||||||
wait ${RPID}
|
wait ${RPID}
|
||||||
RETV=$?
|
RETV=$?
|
||||||
OUTPUT=$(cat output.txt | tr '\n' ' ')
|
OUTPUT=$( tr '\n' ' ' < output.txt )
|
||||||
echo ${OUTPUT}
|
echo ${OUTPUT}
|
||||||
if [ "${OUTPUT}" != 'noot ' ]
|
if [ "${OUTPUT}" != 'noot ' ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue