mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
more edits
This commit is contained in:
+11
-4
@@ -126,6 +126,11 @@ if [[ -f /tmp/removealiases ]]; then
|
|||||||
rm /tmp/removealiases
|
rm /tmp/removealiases
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -f /tmp/removealiases2 ]]; then
|
||||||
|
rm /tmp/removealiases
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ -f /tmp/banner.png ]]; then
|
if [[ -f /tmp/banner.png ]]; then
|
||||||
rm /tmp/banner.png
|
rm /tmp/banner.png
|
||||||
fi
|
fi
|
||||||
@@ -409,17 +414,19 @@ CURRENT=$(cat /tmp/currentaliases | yad --image=$DIR/images/corps-icon.png --cen
|
|||||||
|
|
||||||
rc=$?
|
rc=$?
|
||||||
|
|
||||||
|
sed -i 's/TRUE,//g' /tmp/removealiases
|
||||||
|
awk -F ":" '{print $1}' /tmp/removealiases > /tmp/removealiases2
|
||||||
|
|
||||||
if [[ $rc -eq 0 ]]; then
|
if [[ $rc -eq 0 ]]; then
|
||||||
|
|
||||||
|
sed -i
|
||||||
while read file;
|
while read file;
|
||||||
do
|
do
|
||||||
TOREMOVE=$(echo $file | awk -F "|" '{print $2}' | awk -F ":" '{print $1}')
|
jq 'del(.connect_aliases.'$file')' $PATCONFIG > $TMPFILE
|
||||||
|
|
||||||
jq 'del(.connect_aliases.'$TOREMOVE')' $PATCONFIG > $TMPFILE
|
|
||||||
|
|
||||||
cp $TMPFILE $PATCONFIG
|
cp $TMPFILE $PATCONFIG
|
||||||
|
|
||||||
done < /tmp/removealiases
|
done < /tmp/removealiases2
|
||||||
|
|
||||||
{ findalias_menu; return; }
|
{ findalias_menu; return; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user